B
Brian Mitchell
I couldn't quite figure this out... I am either missing something (I
hope) or there is a small bug:
Module === Module #=> true
Module === Module.new #=> true
af = Module.instance_methodappend_features)
af.bind(Module.new).call(Module) # ok
af.bind(Module.new).call(Module.new) # ok
af.bind(Module).call(Module) # ok
af.bind(Module).call(Module.new) # error!
TypeError: wrong argument type Class (expected Module)
I am kind of puzzled by this... any ideas?
Brian.
hope) or there is a small bug:
Module === Module #=> true
Module === Module.new #=> true
af = Module.instance_methodappend_features)
af.bind(Module.new).call(Module) # ok
af.bind(Module.new).call(Module.new) # ok
af.bind(Module).call(Module) # ok
af.bind(Module).call(Module.new) # error!
TypeError: wrong argument type Class (expected Module)
I am kind of puzzled by this... any ideas?
Brian.