R
Raj Sahae
Why?
irb(main):012:0> a = 5
=> 5
irb(main):013:0> a.class
=> Fixnum
irb(main):014:0> a.methods.include?("dup")
=> true
irb(main):015:0> a.methods.include?("clone")
=> true
irb(main):016:0> a.dup
TypeError: can't dup Fixnum
from (irb):16:in `dup'
from (irb):16
from :0
irb(main):017:0> a.clone
TypeError: can't clone Fixnum
from (irb):17:in `clone'
from (irb):17
from :0
irb(main):018:0>
irb(main):012:0> a = 5
=> 5
irb(main):013:0> a.class
=> Fixnum
irb(main):014:0> a.methods.include?("dup")
=> true
irb(main):015:0> a.methods.include?("clone")
=> true
irb(main):016:0> a.dup
TypeError: can't dup Fixnum
from (irb):16:in `dup'
from (irb):16
from :0
irb(main):017:0> a.clone
TypeError: can't clone Fixnum
from (irb):17:in `clone'
from (irb):17
from :0
irb(main):018:0>