I am writing a program that will fetch me lyrics from any one of a possible
number of sites. For this I have the following setup:
class AbstractLyricFooBarSomething(this is the name suggestion I require)
def init
@artist=""
@title=""
@lyric=""
end
attr_reader :lyric,:artist,:title
end
class MetroLyrics < FooBarSomething
def init url #do magic
end
end
and so on. There'll be a factory that takes in the search queries and
returns an appropriate object(s)
What should I call FooBarSomething? I thought of the following and none of
them seemed to fit the paradigm.
Umm, sorry, read init as initialize, too much Python happening on the side
Jayanth
···
On Fri, Jun 12, 2009 at 12:48 PM, Srijayanth Sridhar <srijayanth@gmail.com>wrote:
Hello,
I am writing a program that will fetch me lyrics from any one of a possible
number of sites. For this I have the following setup:
class AbstractLyricFooBarSomething(this is the name suggestion I require)
def init
@artist=""
@title=""
@lyric=""
end
attr_reader :lyric,:artist,:title
end
class MetroLyrics < FooBarSomething
def init url #do magic
end
end
and so on. There'll be a factory that takes in the search queries and
returns an appropriate object(s)
What should I call FooBarSomething? I thought of the following and none of
them seemed to fit the paradigm.
I am writing a program that will fetch me lyrics from any one of a possible
number of sites. For this I have the following setup:
class AbstractLyricFooBarSomething(this is the name suggestion I require)
def init
@artist=""
@title=""
@lyric=""
end
attr_reader :lyric,:artist,:title
end
class MetroLyrics < FooBarSomething
def init url #do magic
end
end
and so on. There'll be a factory that takes in the search queries and
returns an appropriate object(s)
What should I call FooBarSomething? I thought of the following and none of
them seemed to fit the paradigm.