Student
2009-Jan-01 17:45 UTC
respond_to? / methods / method_missing / instance_methods (round 4)
>> t = Test.new=> #<Test id: nil, name: nil, created_at: nil, updated_at: nil>>> Test.public_instance_methods - ActiveRecord::Base.public_instance_methods=> []>> t.methods - ActiveRecord::Base.public_instance_methods=> ["updated_at", "validate_on_update", "updated_at=", "created_at?", "name", "name=", "validate", "created_at", "created_at=", "name?", "validate_on_create", "updated_at?"]>> Test.public_instance_methods - ActiveRecord::Base.public_instance_methods=> ["updated_at", "updated_at=", "created_at?", "name", "name=", "created_at", "created_at=", "name?", "updated_at?"] Test.public_instance_methods is not updated until t.methods has been called. This would appear to be in error. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---