D
Dark Ambient
I can use some help here:
I've set up this class and objects and would like to "search" it
similar to the way I would search a database. At this point I'm not
concerned with adding regex for more liberal searches.
Any suggestions ?
class Composer
def initialize( lname, country )
@lname = lname
@country = country
end
attr_accessorlname, :country)
end
comp1 = Composer.new("Beethoven", "Germany")
comp2 = Composer.new("DeFalla", "Spain")
comp3 = Composer.new("Debussy", "France")
I've set up this class and objects and would like to "search" it
similar to the way I would search a database. At this point I'm not
concerned with adding regex for more liberal searches.
Any suggestions ?
class Composer
def initialize( lname, country )
@lname = lname
@country = country
end
attr_accessorlname, :country)
end
comp1 = Composer.new("Beethoven", "Germany")
comp2 = Composer.new("DeFalla", "Spain")
comp3 = Composer.new("Debussy", "France")