<garyserj>
thanks, i see the installation of gem pry-byebug adds some commands to pry.
conta has joined #ruby
oleo has quit [Quit: Leaving]
chmurifree is now known as chmuri
MarcWeber has joined #ruby
<MarcWeber>
When assigning a hash, how does ruby detertmine equality? I mean h[obj] -> is there a obj.to_hash like function to tell ruby when it overwrite existing entry?
cthulchu has joined #ruby
edwardly has quit [Ping timeout: 256 seconds]
Phate has quit [Remote host closed the connection]
<caoraivoso>
I like using binding.irb but I wish I had a way to add breakpoints and step/next/continue, etc
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
sidx64 has joined #ruby
aufi has joined #ruby
nowhereman_ has joined #ruby
aufi has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
nowhere_man has quit [Ping timeout: 248 seconds]
cschneid has quit [Remote host closed the connection]
<garyserj>
caoraivoso: so why don't you use binding.pry ?
alfiemax_ has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 256 seconds]
<caoraivoso>
I'm writing simple scripts and I'm a bit lazy to install pry
<caoraivoso>
but I guess I'll do it
AJA4350 has quit [Remote host closed the connection]
<garyserj>
what about byebug , that might come as default?
alfiemax has joined #ruby
AJA4350 has joined #ruby
<caoraivoso>
it's the default in rails, not ruby
<caoraivoso>
I'm not using rails
cschneid has joined #ruby
<garyserj>
ah ok
cthulchu has quit [Ping timeout: 245 seconds]
PhoenixMage has left #ruby [#ruby]
troys has quit [Quit: Bye]
cschneid has quit [Ping timeout: 240 seconds]
cschneid has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
kapil___ has quit [Quit: Connection closed for inactivity]
cschneid has quit [Ping timeout: 268 seconds]
edwardly has quit [Ping timeout: 256 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
Puffball has quit [Ping timeout: 256 seconds]
LocaMocha has joined #ruby
sidx64_ has joined #ruby
sidx64 has quit [Ping timeout: 256 seconds]
aufi has joined #ruby
sidx64 has joined #ruby
aufi has quit [Remote host closed the connection]
LocaMocha has quit [Remote host closed the connection]
jenrzzz has joined #ruby
sidx64_ has quit [Ping timeout: 256 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puffball has joined #ruby
ryzokuken has joined #ruby
cthulchu has joined #ruby
claudiuinberlin has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
<dminuoso>
caoraivoso: There's lots of cool tricks you can do if you simply use lambda and curry.
MatrixBridge has joined #ruby
MatrixBridge has left #ruby ["User left"]
<dminuoso>
Whole "design patterns" disappear into simple functions.
nowhereman_ has quit [Ping timeout: 240 seconds]
<dminuoso>
*caoraivoso
klaas has joined #ruby
sanscoeur has quit [Ping timeout: 256 seconds]
<caoraivoso>
nice
<caoraivoso>
I'll look more into it, thanks
<caoraivoso>
what does HOF stands for?
<dminuoso>
caoraivoso: higher order function. its a function that itself either takes a function (i.e. proc/lambda/block) as an argument and/or returns a function as a result.
jenrzzz has quit [Ping timeout: 248 seconds]
<dminuoso>
basically it admits that functions themselves are values.
Burgestrand has quit [Quit: Good bye and have a nice day!]
<caoraivoso>
that makes sense, most functions return a value quite often
marr has joined #ruby
<dminuoso>
caoraivoso: No.
<dminuoso>
caoraivoso: A function that returns a function as a value!
<dminuoso>
caoraivoso: For example with currying _every_ function with more than one argument is a higher order function.
<dminuoso>
caoraivoso: my `at` is a higher order function.
<dminuoso>
why? if you invoke it with `at[:name]`, it returns a function that takes one argument and produces some result.
<dminuoso>
so `at` is a function that returns a function.
<caoraivoso>
interesting
<dminuoso>
and conversely a function that takes a function as an argument is also a HOF
<dminuoso>
(in Ruby this usually means any method that takes a block)
<dminuoso>
caoraivoso: so there's some cool perspectives
<dminuoso>
like
<dminuoso>
add = -> a, b { a + b }.curry
<dminuoso>
if `add` is a function that returns a function, then what does it do?
<dminuoso>
well `add` creates adders. add[5] creates an "adder, that simply adds 5 to any value"
guille-moe has joined #ruby
<dminuoso>
caoraivoso: Then you can have a fun HOF: ap = -> f, v { f[v] }.curry
<kke>
could there be some clever way to make unknown_local_variable_or_method || "hello" to return hello instead of raising NameError?
<caoraivoso>
dminuoso: nice
nadir has quit [Quit: Connection closed for inactivity]
<caoraivoso>
I'll play a bit more with lambdas
<dminuoso>
caoraivoso: Be sure to curry them, you gain so much more power with no costs..
<caoraivoso>
ok
mtkd has quit [Ping timeout: 240 seconds]
Beams_ has joined #ruby
xco has joined #ruby
<dminuoso>
caoraivoso: (if currying makes sense to you, if not I recommend it)
<dminuoso>
caoraivoso: Its not idiomatic ruby, but with things like `at` you can write so much more concise code.
<dminuoso>
I think foo.map(&at[:name]) tells me much better what this does, compared to `foo.map { |e| e[:name }` because it forces you to think in terms of operations, rather than denotation.
Beams has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
<caoraivoso>
I'm not familiar with curry yet, but I'll check it out
Beams_ has quit [Remote host closed the connection]
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kke>
hmm actually i just want an instance of NilClass that has to_s that raises
<kke>
and i know there's several things wrong in the whole concept of that :D
solocshaw has joined #ruby
<kke>
but is this doable? could i do the equivalent of foo = nil; foo.extend(NotStringable)
<dminuoso>
kke: Can you explain the context?
<dminuoso>
kke: You could generally check for responds_to? first, but it could be an anti pattern depending on what you are doing
<kke>
dminuoso: i'm trying to create a sort of a Namespace for erb binding. I would like to have something like <%= some_var || "default_value" %> and <% some_var ||= 'default_value' %> working, but raise a NameError, "unknown local variable or method X" for something like <%= some_var %> if it's not defined
ryzokuken has quit [Quit: Connection closed for inactivity]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<kke>
so in essence, i think, having a nil that is not to_s:able
<kke>
currently i have something like def method_missing(meth, *args) NilObject.new(meth) end and that works for everything except for the <%= some_var || "default_value" %> (of course there may be some other non working cases i haven't thought of yet)
<kke>
where nilobject is a class that has def nil? { true } and def to_s { raise NameError }
dmitriy_ has quit [Read error: Connection reset by peer]
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
sanscoeur has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
sanscoeur has quit [Ping timeout: 276 seconds]
cadillac_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
Burgestrand has joined #ruby
postmodern has quit [Quit: Leaving]
xco has quit [Quit: xco]
camilasan is now known as camilasan_
za1b1tsu has quit [Quit: Leaving]
cthulchu has joined #ruby
camilasan_ is now known as camilasan
xco has joined #ruby
kliq has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
lenci has joined #ruby
* lenci
KLIKONI http://beratilive.com hyni ne chat me djem dhe takime klikoni direkt START dhe kerkoni ne privat jo main se ju presin djem te bukur
* lenci
KLIKONI http://beratilive.com hyni ne chat me djem dhe takime klikoni direkt START dhe kerkoni ne privat jo main se ju presin djem te bukur
lenci has left #ruby [#ruby]
<dminuoso>
kke | and i know there's several things wrong in the whole concept of that :D
<dminuoso>
kke: No I think that's a very sane thing.
<dminuoso>
kke: nil should make things explode left and right.
claudiuinberlin has joined #ruby
apeiros has joined #ruby
sylario has joined #ruby
willmichael has quit [Ping timeout: 256 seconds]
willmichael has joined #ruby
ltt has joined #ruby
shinnya has joined #ruby
hahuang61 has joined #ruby
cthulchu has quit [Ping timeout: 256 seconds]
ryzokuken has joined #ruby
mtkd has quit []
mtkd has joined #ruby
devil_tux has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
<kke>
mostly refering to things like "an instance of NilClass"
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
vutral|kali has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cavallari has joined #ruby
ltt has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
Psybur_ has joined #ruby
cadillac_ has joined #ruby
willmichael has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
fribmendes is now known as fribmendes_afk
fribmendes_afk has quit [Quit: Zzzz...]
anisha has quit [Ping timeout: 255 seconds]
fribmendes has joined #ruby
willmichael has joined #ruby
anisha has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
Psybur_ has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devil_tux has quit [Ping timeout: 256 seconds]
vutral|kali has quit [Quit: ZNC 1.6.5 - http://znc.in]
nowhereman_ has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 240 seconds]
cthulchu has joined #ruby
tcopeland has quit [Quit: tcopeland]
workmad3_ is now known as workmad3
suukim has joined #ruby
hahuang61 has joined #ruby
luminous has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
hahuang61 has quit [Ping timeout: 268 seconds]
karapetyan has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
SynSynack has quit [Quit: Не разучиться мечтать... любить...]
alex`` has joined #ruby
wojnar has joined #ruby
Burgestrand has quit [Quit: Closing time!]
ferr1 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
meadmoon has joined #ruby
kliq has quit [Ping timeout: 248 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has joined #ruby
ferr1 has left #ruby ["WeeChat 2.0.1"]
alex`` has quit [Quit: WeeChat 2.0.1]
cschneid has joined #ruby
Psybur_ has joined #ruby
ltt has joined #ruby
\void has joined #ruby
Puffball has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 256 seconds]
fribmendes has quit [Quit: Zzzz...]
cschneid has quit [Ping timeout: 256 seconds]
xco has quit [Quit: xco]
milardovich has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
DTZUZO has joined #ruby
schneider has joined #ruby
fribmendes has joined #ruby
cthulchu has joined #ruby
tcopeland has joined #ruby
rikkipitt has joined #ruby
fribmendes has quit [Client Quit]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has joined #ruby
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
adlerdias has joined #ruby
jcalla has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
gnufied has joined #ruby
synthroid has joined #ruby
Psybur_ has quit [Ping timeout: 255 seconds]
psychicist__ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
rikkipitt has quit [Quit: Leaving...]
psychicist__ has joined #ruby
hahuang61 has quit [Ping timeout: 248 seconds]
aufi has quit [Quit: Leaving]
karapetyan has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
cthulchu has quit [Ping timeout: 268 seconds]
cschneid has quit [Ping timeout: 240 seconds]
kliq has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pyther has joined #ruby
<pyther>
Hi. I'm hacking on some puppet code and I'm trynig to figure out what the significance of the underscore in the following line of code? raise Puppet::ParseError, _("modular_file: unable to lookup module_path.")
nowhereman_ has joined #ruby
rrutkowski has joined #ruby
Psybur_ has joined #ruby
meadmoon has quit [Quit: I am functioning within established parameters.]
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
Papierkorb has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
wojnar has quit [Quit: Leaving]
milardovich has joined #ruby
cschneid has joined #ruby
aufi has joined #ruby
aufi_ has joined #ruby
memo1 has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
oleo has joined #ruby
Psybur_ has quit [Ping timeout: 240 seconds]
cthulchu has joined #ruby
ramfjord has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
johnny56 has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
desperek has joined #ruby
karapetyan has quit [Remote host closed the connection]
larissa has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
larissa has joined #ruby
workmad3 has joined #ruby
Bhootrk has joined #ruby
wojnar has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
guille-moe has quit [Quit: guille-moe]
hahuang61 has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
chouhoulis has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
conta has quit [Ping timeout: 248 seconds]
conta has joined #ruby
<apeiros>
pyther: quite likely localization
<apeiros>
also: #puppet
Papierkorb has left #ruby ["Konversation terminated!"]
Burgestrand has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
Psybur has joined #ruby
Psybur has quit [Changing host]
gnufied has quit [Ping timeout: 256 seconds]
hinbody has quit [Quit: leaving]
bmurt has joined #ruby
bmurt has quit [Client Quit]
sanscoeur has joined #ruby
bmurt has joined #ruby
DLSteve_ has joined #ruby
sanscoeur has quit [Ping timeout: 256 seconds]
gnufied has joined #ruby
<desperek>
so well..
<desperek>
umh
<desperek>
how do i format array nicely in 1 liner
conta has quit [Ping timeout: 240 seconds]
<apeiros>
desperek: got an example?
<desperek>
apeiros, i do, but i guess that's not a thing here. array_from_assoc.each or .map
<desperek>
dunno, were there map!?
ixti has joined #ruby
<desperek>
apeiros, i guess thats more ERB question
<apeiros>
I have no idea what you're asking for then
dionysus70 has joined #ruby
aufi_ has quit [Quit: Leaving]
roshanavand has joined #ruby
<desperek>
eh, i need to escape array somehow apeiros
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
for some reason it makes even less sense now
dionysus69 has quit [Ping timeout: 268 seconds]
dionysus70 is now known as dionysus69
<apeiros>
maybe think for a minute what information might be relevant to understand your question.
<apeiros>
(and then provide it)
<desperek>
mhm i brb anyways
hinbody has joined #ruby
ltt has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cavallari has quit [Quit: Cavallari]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
totalsecond is now known as Ethan
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Rapture has joined #ruby
<desperek>
apeiros, so, first things first. i have a view in html.erb. i have for each loop on some array and in this loop i want to proccess array with each/map!
<desperek>
but it doesnt seem to work
<desperek>
instead of executing for each loop it prints the information, like there would be no .each in the first place
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pyther>
apeiros: thanks, I think it appears to be localization. I didn't realize you could define a function as '_'. I thought the underscore had some special meaning in ruby.
Puffball has quit [Remote host closed the connection]
ltt has joined #ruby
<apeiros>
pyther: it doesn't. it works like a lowercase character.
yokel has quit [Ping timeout: 260 seconds]
GinoMan has joined #ruby
synthroid has joined #ruby
mtkd has quit []
ramfjord has joined #ruby
yokel has joined #ruby
Cavallari has joined #ruby
bmurt has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
cthulchu has joined #ruby
mtkd has joined #ruby
jenrzzz has joined #ruby
Zaab1t has joined #ruby
cdg has quit [Remote host closed the connection]
aguestuser has quit [Remote host closed the connection]
Greasy-Gappers_ has quit [Quit: ZNC 1.7.x-git-876-42939c9 - https://znc.in]
cdg has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
cdg has quit [Ping timeout: 265 seconds]
tubbo has joined #ruby
kliq has quit [Ping timeout: 256 seconds]
<cout>
wow, instance_variable_set is really slow
jcarl43 has joined #ruby
<havenwood>
cout: They just added it to things that MJIT can optimize.
psychicist__ has quit [Read error: Connection reset by peer]
psychicist__ has joined #ruby
alfiemax has joined #ruby
ramfjord has joined #ruby
mtkd has quit []
tolerablyjake has joined #ruby
jeffreylevesque has joined #ruby
tolerablyjake has quit [Client Quit]
eckhardt_ has joined #ruby
tolerablyjake has joined #ruby
kies has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 240 seconds]
tolerablyjake has quit [Client Quit]
tolerablyjake has joined #ruby
claudiuinberlin has joined #ruby
pilne has joined #ruby
marr has quit [Remote host closed the connection]
kapil___ has quit [Quit: Connection closed for inactivity]
drewmcmillan has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
kliq has joined #ruby
mooser has joined #ruby
Dimik has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
Ltem has quit [Quit: bbl]
clemens3 has joined #ruby
alfiemax has joined #ruby
ramfjord has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
ltt has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
suukim has quit [Remote host closed the connection]
gnufied has quit [Remote host closed the connection]
kies has joined #ruby
mooser has quit [Remote host closed the connection]
ldepandis has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
gnufied has joined #ruby
segy_ has joined #ruby
rrutkowski has joined #ruby
orbyt_ has joined #ruby
segy has quit [Ping timeout: 245 seconds]
segy_ is now known as segy
mooser has joined #ruby
shinnya has joined #ruby
Ltem has joined #ruby
ryandv has joined #ruby
alfiemax has joined #ruby
tolerablyjake has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 256 seconds]
amatas has quit [Quit: amatas]
amatas has joined #ruby
amatas has quit [Client Quit]
amatas has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tolerablyjake has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
adlerdias has quit [Ping timeout: 268 seconds]
speakingcode has joined #ruby
willmichael has quit [Ping timeout: 252 seconds]
segy has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
ramfjord has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
segy has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tubbo has joined #ruby
willmichael has joined #ruby
claudiuinberlin has joined #ruby
sameerynho has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
nowhereman_ has quit [Ping timeout: 265 seconds]
rrutkowski has quit [Quit: rrutkowski]
CalimeroTeknik has joined #ruby
tubbo` has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
memo1 has joined #ruby
tubbo has quit [Read error: Connection reset by peer]
ams__ has quit [Quit: Connection closed for inactivity]
Code4Dopamine has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
riotjoe has joined #ruby
tvw has joined #ruby
<CalimeroTeknik>
`puts foo` outputs {:bar=>"baz"} in some program. how to access the field foo.bar? `puts foo.bar` says Listener error: undefined method `bar' for #<Hash:0x007f80636e33f0>
tubbo has joined #ruby
marxarelli is now known as marxarelli|afk
<phaul>
CalimeroTeknik: catch call with method_missing, check if name is key, return value
<phaul>
it's all dirty hacking, but I guess it's fine here
milardovich has joined #ruby
tubbo` has quit [Ping timeout: 268 seconds]
<CalimeroTeknik>
uh, how do I access a "key"?
<CalimeroTeknik>
foo["bar"] produced the same effect
riotjones has quit [Ping timeout: 252 seconds]
<phaul>
you need to open up the Hash class for monkey patching. define a method_missing function in there
speakingcode has quit [Quit: Lost terminal]
alfiemax has joined #ruby
<CalimeroTeknik>
I stand corrected, foo["bar"] seems to output an empty string instead
riotjoe has quit [Ping timeout: 260 seconds]
memo1 has quit [Ping timeout: 240 seconds]
<CalimeroTeknik>
I don't think I need any hacking, just how to access fields in parsed yaml
<CalimeroTeknik>
super basic basics but I don't even know the syntax
memo1 has joined #ruby
<phaul>
I read too much into your question sorry. Ingore what I said
dviola has joined #ruby
<CalimeroTeknik>
no worries, I understand it, I just lack syntax basics in ruby; how could I access a key?
<phaul>
to access :foo in h = { :foo => "bar" } use h[:foo]