adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
postmodern has joined #ruby
hololeap_ is now known as hololeap
freeworld has joined #ruby
ur5us has joined #ruby
freeworld has quit [Ping timeout: 252 seconds]
Skyfire has quit [Quit: brb]
puts has quit [Quit: Czesc]
Skyfire has joined #ruby
Rounin has quit [Ping timeout: 245 seconds]
freeworld has joined #ruby
Liothen has quit [Ping timeout: 245 seconds]
itok has quit [Ping timeout: 245 seconds]
Liothen has joined #ruby
itok has joined #ruby
Oxfuxxx has quit [Quit: Never underestimate the power of the butt..[]X/O...ON. (Playst...i mean.. Pir@tA$$)]
freeworld has quit [Quit: Konversation terminated!]
r3my has quit [Read error: Connection reset by peer]
r3my has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
kaivai has joined #ruby
jetchisel has quit [Ping timeout: 252 seconds]
jetchisel has joined #ruby
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
postmodern has quit [Remote host closed the connection]
FemmeAndroid has joined #ruby
FemmeAndroid has quit [Ping timeout: 252 seconds]
kaivai has quit [Ping timeout: 268 seconds]
jpw has joined #ruby
kaivai has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
tkonto has joined #ruby
jetchisel has quit [Ping timeout: 245 seconds]
jetchisel has joined #ruby
_ht has joined #ruby
tkonto has quit [Quit: tkonto]
BSaboia has joined #ruby
tkonto has joined #ruby
Skyfire has quit [Ping timeout: 260 seconds]
tkonto has quit [Quit: tkonto]
BSaboia has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
Skyfire has joined #ruby
nowaker_ has quit [Quit: No Ping reply in 180 seconds.]
Nowaker has joined #ruby
teclator has joined #ruby
jetchisel has quit [*.net *.split]
postmodern has quit [*.net *.split]
itok has quit [*.net *.split]
Liothen has quit [*.net *.split]
Milos has quit [*.net *.split]
factor has quit [*.net *.split]
unmanbearpig has quit [*.net *.split]
phenom_ has quit [*.net *.split]
Bitflux has quit [*.net *.split]
cout has quit [*.net *.split]
AndrewYu has quit [*.net *.split]
weyhmueller_ has quit [*.net *.split]
jimeh has quit [*.net *.split]
Artea has quit [*.net *.split]
jhawthorn has quit [*.net *.split]
benjaminwil has quit [*.net *.split]
xyhuvud has quit [Quit: No Ping reply in 180 seconds.]
jetchisel has joined #ruby
itok has joined #ruby
postmodern has joined #ruby
Liothen has joined #ruby
factor has joined #ruby
unmanbearpig has joined #ruby
Milos has joined #ruby
phenom_ has joined #ruby
Bitflux has joined #ruby
AndrewYu has joined #ruby
cout has joined #ruby
jimeh has joined #ruby
weyhmueller_ has joined #ruby
Artea has joined #ruby
jhawthorn has joined #ruby
benjaminwil has joined #ruby
yxhuvud has joined #ruby
Bitflux has quit [Max SendQ exceeded]
itok has quit [Max SendQ exceeded]
AndrewYu has quit [Max SendQ exceeded]
unmanbearpig has quit [Max SendQ exceeded]
Byteflux has joined #ruby
unmanbearpig has joined #ruby
itok has joined #ruby
AndrewYu has joined #ruby
ur5us has joined #ruby
Rounin has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
hololeap_ has joined #ruby
hololeap has quit [Read error: Connection reset by peer]
jetchisel has quit [Ping timeout: 252 seconds]
Toledo has quit [Ping timeout: 246 seconds]
Toledo has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
hololeap_ has quit [Remote host closed the connection]
hololeap_ has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
hololeap_ has quit [Read error: Connection reset by peer]
hololeap_ has joined #ruby
TomyWork has joined #ruby
jetchisel has joined #ruby
hololeap_ is now known as hololeap
Tempesta has quit [Quit: See ya!]
flooose has joined #ruby
hololeap_ has joined #ruby
hololeap has quit [Ping timeout: 276 seconds]
hololeap_ is now known as hololeap
flooose has quit [Ping timeout: 245 seconds]
lad has joined #ruby
liquid-silence has joined #ruby
<liquid-silence> has anyone been able to install ruby 1.8x on Mac with rbenv?
<nakilon> IIRC I could not install even <2.2 because of some SSL errors
<nakilon> now my bug is 1 year and 5 days old
<nakilon> soon even Ruby 2.3 will start erroring about SSL so they would say "meh, can't reproduce, this never worked so it's nothing to fix"
<liquid-silence> I am just going to dockerize this
slondr has joined #ruby
<slondr> Hello, is there a way to get the name of a class (as a string or sym) given an instance or the class?
<slondr> `a.name' does not work, as that will return the string "Class" given any class
bit4bit has joined #ruby
<nakilon> irb
<nakilon> oops
<nakilon> > 5.class.name => "Fixnum"
<nakilon> > Fixnum.name => "Fixnum
<nakilon> slondr what's the problem?
TzilTzal has joined #ruby
<slondr> nakilon: `Fixnum.name' returns "Integer"
<slondr> which is generally the problem
<nakilon> depends on ruby version
<nakilon> oh
<nakilon> slondr I still don't get it https://dpaste.org/3X1A/slim
<slondr> nakilon: String.class.name -> "Class"
<slondr> not good
flooose has joined #ruby
<nakilon> (x.is_a?(Class) ? x : x.class).name
<nakilon> (x.respond_to?(:name) ? x : x.class).name
slondr has quit [Ping timeout: 265 seconds]
infinityfye has joined #ruby
weltio has joined #ruby
<weltio> why is there a "\s" construct in ruby?
<weltio> from my understanding its just a " " - when do i actually need "\s" instead of " " ?
<nakilon> ?\s
<jidar> why? because \s is a known regex symbol
roshanavand has joined #ruby
lad has quit [Ping timeout: 252 seconds]
flooose has quit [Ping timeout: 245 seconds]
<weltio> nakilon: we do not talk about the regex class but the ruby specific escaping seqeunce
<nakilon> irb(main):001:0> ?\s #=> " "
TzilTzal has quit [Remote host closed the connection]
Tempesta has joined #ruby
TzilTzal has joined #ruby
TzilTzal has quit [Ping timeout: 252 seconds]
<weltio> nakilon: yeah, the reason is why? i dont know any language that needs it, why does ruby need it?
<nakilon> idk, maybe it's from perl?
<nakilon> or maybe it's because previously ?<char> meant an ascii numeric value of it
<nakilon> so you had to have some way to put the chat after '?' in obvious way
postmodern has joined #ruby
TzilTzal has joined #ruby
TzilTzal has quit [Read error: Connection reset by peer]
TzilTzal has joined #ruby
mrkz_c has joined #ruby
TzilTzal has quit []
BSaboia has joined #ruby
TomyWork has quit [Quit: Leaving]
BSaboia has quit [Quit: This computer has gone to sleep]
flooose has joined #ruby
terminalpusher has joined #ruby
jpw_ has joined #ruby
jpw has quit [Ping timeout: 252 seconds]
<havenwood> nakilon: I think of them as from C. Hem.
<havenwood> weltio: Is it not very much like a C escape sequence?
<havenwood> I guess you all mean \s specifically. Mmm.
<havenwood> Unsure who added that first.
<weaksauce> isn't that just also an ascii sequence
<weaksauce> i imagine it was just added bitd as a thing they didn't give that much thought to
donofrio has joined #ruby
fredlinhares has joined #ruby
flooose has quit [Ping timeout: 245 seconds]
Bounga has joined #ruby
jpw has joined #ruby
jpw_ has quit [Ping timeout: 265 seconds]
<weltio> havenwood: yes, specifically '\s' - i have never seen that before in any other language (in regex it is the whitespacecharacterclass, but thats a completely different context ) - it just seemed very odd
terminalpusher has quit [Remote host closed the connection]
ur5us has joined #ruby
taupiqueur has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
FemmeAndroid has joined #ruby
weltio has quit [Ping timeout: 245 seconds]
Bounga has quit [Ping timeout: 265 seconds]
<duds-> where can I read more about the distinction between attributes and methods
<duds-> I’m a dummy and didn’t really get it too much
<nakilon> attributes can be read by another object only via methods -- that's basically it
<nakilon> so when you do something like :attr_accessor x in class definition, you define methods x and x= that write and read the @x inside the object
<nakilon> (if I'm not wrong in some way)
<weaksauce> duds- attr_accessor attr_reader and attr_writer all create the methods to either read and write, read or write
<weaksauce> shorthand for the basic case
<duds-> Ohhh
<nakilon> they are a shortcuts to "def x ; return @x ; end" and "def x=(y) ; @x = y ; end"
<duds-> I get it now!
<duds-> Ty fellas
<weaksauce> a fun fact about classes is that it's just ruby code
<weaksauce> so you can outside of a method definition just write puts "hello from the class"
<weaksauce> and it will output that when the class is read
<weaksauce> that fact kinda demystified rails for me
<duds-> ok chill I’m at chapter 3 of the pickaxe book still lol
<duds-> It’s my first proglang… but I have a good idea of it now :]
taupiqueur has quit [Remote host closed the connection]
<weaksauce> ah nice
taupiqueur has joined #ruby
<nakilon> an hour ago I was told "go f... yourself" by a python fan in another channel for saying that he likes python because other languages that he tried were just worse and he didn't try a better one
<weaksauce> haha
<weaksauce> i can't stand the whitespace thing in python
<nakilon> is it something wrong with me that when someone tells me "you should check out the X" I don't say "f" instead of "oh rly? I'll check it our..."
<nakilon> *out
jpw has quit [Remote host closed the connection]
jpw has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
jpw_ has joined #ruby
jpw has quit [Ping timeout: 245 seconds]
jpw_ has quit [Remote host closed the connection]
jhass|off is now known as jhass
roshanavand has quit [Ping timeout: 265 seconds]
taupiqueur has quit [Quit: taupiqueur]
_ht has quit [Remote host closed the connection]
ur5us has joined #ruby
postmodern has quit [Read error: Connection reset by peer]
weltio has joined #ruby
flooose has joined #ruby
FemmeAndroid has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
weltio has quit [Quit: Konversation terminated!]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
infinityfye has quit [Ping timeout: 252 seconds]
advorak has joined #ruby
weaksauce has joined #ruby
kmacleod has joined #ruby
<kmacleod> Is there a way to force rubygems to use v1 of the API? Trying to workaround https://www.jfrog.com/jira/browse/RTFACT-26384 Slow gem package installation with Ruby 3.0.2 via Artifactory
postmodern has joined #ruby
taupiqueur has joined #ruby
lad has joined #ruby
advorak has quit [Quit: leaving]
infinityfye has joined #ruby
infinityfye has quit [Quit: Leaving]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
roshanavand has joined #ruby
sam113101 has quit [Quit: WeeChat 3.2]
sam113101 has joined #ruby
sam113101 has quit [Quit: WeeChat 3.2]
sam113101 has joined #ruby
roshanavand has quit [Ping timeout: 250 seconds]
lunarkitty has joined #ruby
jetchisel has quit [Ping timeout: 260 seconds]
bit4bit has quit [Quit: Leaving]
jetchisel has joined #ruby
roshanavand has joined #ruby
lad has quit [Ping timeout: 245 seconds]
gcd has joined #ruby
Oxfuxxx has joined #ruby
RougeR has joined #ruby
Oxfuxxx has quit [Ping timeout: 265 seconds]
taupiqueur has quit [Ping timeout: 265 seconds]