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
gggpkm has joined #ruby
teclator has joined #ruby
ur5us has joined #ruby
postmodern has quit [Remote host closed the connection]
sharkee has joined #ruby
Oxfuxxx has joined #ruby
kenichi has quit [Quit: ZNC 1.8.2 - https://znc.in]
kenichi has joined #ruby
miah has quit [Ping timeout: 260 seconds]
miah has joined #ruby
Oxfuxxx has quit [Quit: brb]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Quit: Never underestimate the power of the butt.[]OX/...ON. (Playst...i mean.. Pir@tA$$)]
sharkee has quit [Remote host closed the connection]
sharkee has joined #ruby
Oxfuxxx has joined #ruby
goepsilongo has joined #ruby
teclator has quit [Remote host closed the connection]
___nick___ has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.2.1]
goepsilongo_ has joined #ruby
goepsilongo has quit [Ping timeout: 245 seconds]
neopolitan has quit [Quit: The Lounge - https://thelounge.chat]
Cameronian has joined #ruby
Cameronian has quit [Quit: Leaving]
zph1nx has quit [Quit: Client closed]
sharkee has quit [Ping timeout: 268 seconds]
Oxfuxxx has quit [Ping timeout: 268 seconds]
Oxfuxxx has joined #ruby
sharkee has joined #ruby
Cameronian has joined #ruby
clemens3 has quit [Ping timeout: 246 seconds]
clemens3 has joined #ruby
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
pwnd_sfw has joined #ruby
pwnd_sfw4 has joined #ruby
___nick___ has quit [Ping timeout: 246 seconds]
pwnd_sfw has quit [Ping timeout: 264 seconds]
pwnd_sfw4 is now known as pwnd_sfw
jpw has joined #ruby
aeris has quit [Remote host closed the connection]
_aeris_ has joined #ruby
_aeris_ is now known as aeris
ur5us has quit [Ping timeout: 245 seconds]
pwnd_sfw1 has joined #ruby
pwnd_sfw has quit [Ping timeout: 265 seconds]
pwnd_sfw1 is now known as pwnd_sfw
Andrew_ has joined #ruby
AndrewYu has quit [Ping timeout: 252 seconds]
tbaeder has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
walez has joined #ruby
jetchisel has joined #ruby
walez- has joined #ruby
walez has quit [Ping timeout: 246 seconds]
walez- has quit [Quit: Leaving]
walez has joined #ruby
teclator has joined #ruby
mbrndtgn7 has joined #ruby
mbrndtgn has quit [Read error: Connection reset by peer]
mbrndtgn7 is now known as mbrndtgn
roadie has joined #ruby
pv2b has joined #ruby
keinbock has quit [Quit: Connection closed for inactivity]
MeowcatWoofWoofF has quit [Quit: Bridge terminating on SIGTERM]
mewfree[m] has quit [Quit: Bridge terminating on SIGTERM]
hsiktas[m] has quit [Quit: Bridge terminating on SIGTERM]
jhass[m] has quit [Quit: Bridge terminating on SIGTERM]
Bi[m] has quit [Quit: Bridge terminating on SIGTERM]
sixecho has quit [Quit: Bridge terminating on SIGTERM]
juanfra has quit [Quit: Bridge terminating on SIGTERM]
jhass[m] has joined #ruby
mewfree[m] has joined #ruby
sixecho has joined #ruby
juanfra has joined #ruby
hsiktas[m] has joined #ruby
MeowcatWoofWoofF has joined #ruby
Bi[m] has joined #ruby
aeris has quit [Ping timeout: 276 seconds]
aeris has joined #ruby
Guest33 has joined #ruby
<Guest33> hello
Guest33 has quit [Quit: Client closed]
<rapha> hi all
<rapha> i.e. ruby -ep 'something' bbb
<jhass[m]> rapha: with -p it reads the file named likewise. -p implies -n which puts a while gets; loop around the expression supplied to -e. Kernel#gets forwards to ARGF#gets. ARGF reads all files in ARGV and then standard input
<rapha> jhass[m]: i knew about -e and -n and the addition that -p makes to -n, but where does the "bbb" come in?
goepsilongo has joined #ruby
<jhass[m]> it's just a filename
<rapha> oooooooooooooooh
<rapha> i was always using -ep together with a pipe ... the OP there was using with a file
* rapha facepalms
<rapha> thank you jhass[m]
<jhass[m]> gladly
goepsilongo_ has quit [Ping timeout: 245 seconds]
Qchmqs has joined #ruby
jpw_ has joined #ruby
jpw has quit [Ping timeout: 265 seconds]
Oxfuxxx_ has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
keinbock has joined #ruby
pv2b has quit [Ping timeout: 256 seconds]
teclator has joined #ruby
goepsilongo_ has joined #ruby
goepsilongo has quit [Ping timeout: 245 seconds]
hololeap has joined #ruby
reset has quit [Quit: reset]
roadie has quit [Ping timeout: 265 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 245 seconds]
roadie has joined #ruby
jpw_ has quit [Ping timeout: 252 seconds]
roadie has quit [Ping timeout: 252 seconds]
goepsilongo has joined #ruby
goepsilongo_ has quit [Ping timeout: 245 seconds]
roadie has joined #ruby
sixecho has quit [Ping timeout: 250 seconds]
gggpkm has quit [Remote host closed the connection]
gggpkm has joined #ruby
gggpkm has quit [Remote host closed the connection]
gggpkm has joined #ruby
gggpkm has quit [Remote host closed the connection]
gggpkm has joined #ruby
gggpkm has quit [Remote host closed the connection]
gggpkm has joined #ruby
gggpkm has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
<donofrio> just starting to learn ruby but why would you have a dictionary with a number like test_grades = {3 => 95.2} puts test_grades [3] juse seems diffrent to use a varable as a number?
sixecho has joined #ruby
<donofrio> juse = just (typo)
<nakilon> you can use anything as a key
<nakilon> and as a value
<donofrio> yah that just seems diffrent to me, used to alphabet for varable name now a number as a varable
<donofrio> now = not
<nakilon> you are free to use any alphabet
<donofrio> yep I see that and it seems I can use numbers like {77 => 105} puts test_grade [77] and it prints 105
<nakilon> {1 => "foo", :bar => ENV, , String => ->{}}
<donofrio> go easy on me I'm in day one of ruby ;)
<donofrio> so, puts [1] prints foo?
<nakilon> yeah
<nakilon> 1 is just a literal that means an instance of a class Integer in Ruby runtime
<donofrio> so what does last part print puts String [] output?
<nakilon> "foo" is String, :bar is Symbol, ENV is a default Hash constant containing all the environment variables, String is an instance of a class Class, ->{} is a lambda
<donofrio> lambda?
<nakilon> {String => "foo"}[String] #=> "foo"
unmanbearpig has quit [Quit: unmanbearpig]
unmanbearpig has joined #ruby
<nakilon> lambda is a function that can be assigned to a variable to be called later, like function(){...} in javascript, also they now have the "arrow syntax" too and look like Ruby lambdas
tbaeder has quit [Ping timeout: 245 seconds]
Cameronian has quit [Remote host closed the connection]
Cameronian has joined #ruby
<adam12> donofrio: As nakilon mentioned, you can basically use any Ruby object as a key in a Hash (or as you said, dictionary). Same obviously applies to the value as well, but that should be obvious.
<adam12> donofrio: The difference between { 3 => 95.2 } and an Array with 95.2 in position 3 is that a Hash can have missing keys more naturally, where as an Array would have `nil` for the missing keys.
<adam12> donofrio: ie. [nil, nil, nil, 95.2]
<adam12> donofrio: They both use `[]` for read and `[]=` for write, so it's transparent to you, and part of a "protocol" that Ruby implements for some things.
Cameronian has quit [Quit: Leaving]
Cameronian has joined #ruby
Cameronian has quit [Client Quit]
Qchmqs has quit [Ping timeout: 252 seconds]
walez has quit [Quit: Leaving]
goepsilongo_ has joined #ruby
goepsilongo has quit [Ping timeout: 245 seconds]
goepsilongo has joined #ruby
goepsilongo_ has quit [Ping timeout: 245 seconds]
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
darkxploit has joined #ruby
TomyWork has joined #ruby
<TomyWork> https://github.com/briangonzalez/sinatra-webdav-neue/blob/master/app.rb#L11 I'm trying to understand this code. Is the class "SinatraDavApp" at line 11 used at all?
<TomyWork> or is it thrown out completely with the assignment in line 15?
bit4bit has joined #ruby
<TomyWork> just trying to figure out what this project has to do with sinatra at all
<nakilon> I guess thrown out
eddof13 has joined #ruby
BSaboia has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_ht has joined #ruby
eddof13 has joined #ruby
postmodern has quit [Read error: Connection reset by peer]
eddof13 has quit [Remote host closed the connection]
bit4bit has quit [Ping timeout: 265 seconds]
orbyt has joined #ruby
TomyWork has quit [Quit: Leaving]
jpw has joined #ruby
CrazyEddy has quit [Ping timeout: 245 seconds]
stevea has joined #ruby
gr33n7007h has joined #ruby
goepsilongo has quit [Quit: Textual IRC Client: www.textualapp.com]
darkxploit has quit [Read error: No route to host]
reset has joined #ruby
stevea has quit [Quit: Either I or my computer has gone to sleep. ZZZzzz…]
hexology has joined #ruby
<hexology> hi ruby users! the extent of my ruby experience is writing Homebrew formulas, so i apologize if the answer is obvious. i am getting the error "TypeError: no implicit conversion of Hash into String" when i try to pass some env vars to kernel#system(). my code is here: https://bpa.st/VEQA, the error is reported on line 15, where "system(" starts
<hexology> i don't see what's different about my code versus what's in the various examples, as well as the ruby docs
<hexology> oh... it looks like they override #system in that Formula class? https://rubydoc.brew.sh/Formula.html#system-instance_method
<hexology> i guess i will have to take this up with the homebrew people
<hexology> but to close the loop on this: it means that somewhere inside a library, a string was required, and it refused to convert the hash {} into said string?
<weaksauce> hexology the { starts a hash
<weaksauce> and system is expecting strings
crankharder has joined #ruby
georgemp has quit [Remote host closed the connection]
georgemp has joined #ruby
stevea has joined #ruby
_ht has quit [Remote host closed the connection]
stevea has quit [Client Quit]
roadie has quit [Ping timeout: 250 seconds]
jpw has quit [Remote host closed the connection]
roadie has joined #ruby
stevea has joined #ruby
stevea has quit [Client Quit]
postmodern has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
kinduff has quit [Quit: Ping timeout (120 seconds)]
kinduff has joined #ruby
lipoqil has quit [Ping timeout: 240 seconds]
isene has quit [Ping timeout: 260 seconds]
lipoqil has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
isene has joined #ruby
postmodern has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
roadie has joined #ruby
shark_WRM has joined #ruby
Oxfuxxx has quit [Ping timeout: 250 seconds]
sharkee has quit [Ping timeout: 250 seconds]
postmodern has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
Oxfuxxx has joined #ruby
roadie has quit [Ping timeout: 245 seconds]
Oxfuxxx_ has quit [Ping timeout: 252 seconds]
roadie has joined #ruby
shokohsc8 has quit [Read error: Connection reset by peer]
roadie has quit [Ping timeout: 264 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
crankharder has quit [Ping timeout: 240 seconds]
orbyt has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jetchisel has quit [Ping timeout: 246 seconds]
jetchisel has joined #ruby
_aeris_ has joined #ruby
random-jellyfish has joined #ruby
unmanbearpig has quit [Changing host]
unmanbearpig has joined #ruby
TCZ has joined #ruby
random-jellyfish has quit [Client Quit]
TCZ has quit [Client Quit]
puts has joined #ruby
aeris has quit [Ping timeout: 276 seconds]
_aeris_ is now known as aeris
crankharder has joined #ruby
CrazyEddy has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
puts has quit [Quit: https://github.com/srgx]
gggpkm has joined #ruby
roadie has joined #ruby
postmodern has quit [Read error: Connection reset by peer]
gggpkm has quit [Remote host closed the connection]
gggpkm has joined #ruby
roadie has quit [Ping timeout: 252 seconds]