If I do this in irb: (The PlaylistItem model has an attribute
'position'
s = Playlist.find(:first).playlist_items[0].methods(true).include?
('position')
true
How's that possible? Does irb do some fancy trick to retrieve all
methods?
Must I do something in the instance_eval to make the methods appear?
They get generated when they are needed (via method_missing). Why do
you care about whether the methods exists rather than just going ahead
and calling them ?