RubyKaigi2010
Schedule: Augast 27 ~ 29, 2010
Venue:
Schedule: Augast 27 ~ 29, 2010
Venue:
module Bar
def initialize(b)
super
puts "#{b} World"
end
end
irb(main):018:0> Sample.new('qux')
Hello qux
qux World
=> #<Sample:0x256e918>
irb(main):017:0> Sample.new('qux')
qux World
=> #<Sample:0x246f508>class Foo
def initialize(a)
puts "Hello #{a}"
end
end
module Bar
def initialize(b)
puts "#{b} World"
end
end
class Sample < Foo
include Bar
def initialize(c)
super
end
end