Skip to content

Instantly share code, notes, and snippets.

@arjunghosh
Forked from al3x/dup_derp
Created October 19, 2009 23:18

Revisions

  1. @al3x al3x created this gist Oct 19, 2009.
    9 changes: 9 additions & 0 deletions dup_derp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    $ irb
    >> 1.class
    => Fixnum
    >> 1.respond_to?(:dup)
    => true
    >> 1.dup
    TypeError: can't dup Fixnum
    from (irb):3:in `dup'
    from (irb):3