C
chen li
Hi all,
On page 49 of Pickaxe 2 are some scripts:
class Songlist
def with_title(title)
@songs.find{|song| title==song.name}
end
end
I just wonder where the method "name" comes from and
what its purpose is here. I check for Index on page
809 and find "name" is mentioned in class Module only,
which returns the name of module mod.
Thanks,
Li
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
On page 49 of Pickaxe 2 are some scripts:
class Songlist
def with_title(title)
@songs.find{|song| title==song.name}
end
end
I just wonder where the method "name" comes from and
what its purpose is here. I check for Index on page
809 and find "name" is mentioned in class Module only,
which returns the name of module mod.
Thanks,
Li
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com