Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more
BasicObject
# File json/lib/json/add/rails.rb, line 10 def self.json_create(object) obj = new for key, value in object next if key == JSON.create_id instance_variable_set "@#{key}", value end obj end
# File json/lib/json/add/rails.rb, line 19 def to_json(*a) result = { JSON.create_id => self.class.name } instance_variables.inject(result) do |r, name| r[name[1..-1]] = instance_variable_get name r end result.to_json(*a) end
This page was generated for Ruby 1.9.2
Ruby-doc.org is provided by James Britt and Neurogami. Maximum R+D.
Generated with Ruby-doc Rdoc Generator 0.44.0.