Can you give me an example?
I have heard the word "attribute" refer, in Ruby-specific circles, to any method which does not take arguments.
class Batman
def favorite_ice_cream
[
'neopolitan',
'chunky monkey',
'chocolate',
'chocolate chip cookie dough',
'whiskey'
].shuffle[0]
end
end
In the above, my_newest_batman.favorite_ice_cream would be an attribute.