J
John Maclean
Is i) and ii) just two different methods for initialising?
i)
class Song
attr_reader :name, :artist, :
end
ii)
def initialize(foo, blah, haha)
@foo = foo
@blah = blah
@haha = haha
end
i)
class Song
attr_reader :name, :artist, :
end
ii)
def initialize(foo, blah, haha)
@foo = foo
@blah = blah
@haha = haha
end