C:\>irb --simple-prompt
DL is deprecated, please use Fiddle
>> class Foo
>> def talk
>> p "huanng"
>> end
>> end
=> nil
>> module Bar
>> def talk
>> p "hunnggg"
>> end
>> end
=> nil
>> foo = Foo.new
=> #<Foo:0x20493c0>
>> class << foo
>> def talk
>> super
>> return
>> p "hukkangg"
>> end
>> include Bar
>> end
=> #<Class:#<Foo:0x20493c0>>

part - A

>> foo.talk
"hunnggg"
=> nil

Part - B

>> foo.class.instance_method(:talk).bind(foo).call
"huanng"
=> "huanng"

Can anyone help me to understand the difference between the two call to
`talk`? or How part B bypass the call to singleton method `talk` to
class Foo s `talk` ?

-- 
Posted via http://www.ruby-forum.com/.