On Apr 4, 11:56 am, dwi ardi irawan <[email protected]> wrote:
> Hi, i just try exercise 3, RubyMethod_Parentheses
> and just found that it result different result using Ruby 1.9
>
> can somebody explain me about this ?
I will suspect that the to_s method is involved in printing a hash,
and the difference lays in this to_s method, which is equivalent to
inspect method in ruby 1.9
In ruby 1.8:
[1,2,3].to_s results in "123"
In ruby 1.9:
[1,2,3].to_s results in "[1,2,3]"
You may find useful this url to see what are the changes in ruby 1.9
together with examples:
http://eigenclass.org/hiki.rb?Changes+in+Ruby+1.9#l87
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---