🕷 zenspider.com

by ryan davis



sitemap
Looking for the Ruby Quickref?

Getting There...

Published 2009-01-13 @ 00:02

Tagged toys, wilson

require ‘metal’

class X
  defasm :superfast_meaning_of_life do |asm|
    asm.eax.mov 85                # (42 << 1) + 1
  end
end

p X.new.superfast_meaning_of_life # => 42