Skip to content

Instantly share code, notes, and snippets.

@bhuga
Created June 15, 2010 10:29
Show Gist options
  • Save bhuga/438956 to your computer and use it in GitHub Desktop.
Save bhuga/438956 to your computer and use it in GitHub Desktop.
require 'promise'
four = promise { 2 + 2 }
puts "respond_to? :odd? #{four.respond_to?(:odd?)}"
# => true
puts "respond_to? :asdfsa? #{four.respond_to?(:asdfasdf?)}"
# => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment