You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I get the output, {"user"=>{"name"=>"guest", "password"=>"test"}}
How am I supposed to parse this, so I could just do puts user.name and get guest?
The text was updated successfully, but these errors were encountered:
Also, sorry if this question seems really basic, I just started self-teaching myself ruby a week ago. Still getting into the concept of almost everything being an object in Ruby, after coding in JS for years.
This is what I have so far:
user.toml
:main.rb
:Then I get the output,
{"user"=>{"name"=>"guest", "password"=>"test"}}
How am I supposed to parse this, so I could just do
puts user.name
and getguest
?The text was updated successfully, but these errors were encountered: