A
aidy
Hi,
Could anyone please tell me what the difference would be of inheriting
a class versus passing that class\object through the initialize
method?
class ErrorBox < Box
end
v
box ||= Box.new
class ErrorBox
def initialize(box)
end
end
And why would I do one over the other?
Thanks
Aidy
Could anyone please tell me what the difference would be of inheriting
a class versus passing that class\object through the initialize
method?
class ErrorBox < Box
end
v
box ||= Box.new
class ErrorBox
def initialize(box)
end
end
And why would I do one over the other?
Thanks
Aidy