Skip to content

Instantly share code, notes, and snippets.

@andkerosine
Created October 23, 2012 19:46
Show Gist options
  • Select an option

  • Save andkerosine/3941115 to your computer and use it in GitHub Desktop.

Select an option

Save andkerosine/3941115 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Oct 23, 2012.
    6 changes: 6 additions & 0 deletions drugs_and_convenience.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    class Integer
    def method_missing meth, *args
    super unless meth[/base\d+/]
    to_s meth[4,2.0].to_i
    end
    end