Friday, July 16, 2010

[Rails] not able to find to_yaml definition

I am looking at rails edge source code.

I am able to do

puts User.find.to_yaml

However I am not able to find piece of code where 'def to_yaml' is.
How this to_yaml serialization is working?

can fully understand how to_json and to_xml is working but to_yaml
beats me.

Thanks

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate