Skip to content

Instantly share code, notes, and snippets.

@alanwillms
Last active August 28, 2015 12:09
Show Gist options
  • Save alanwillms/0f96b0a768d5d107aa6e to your computer and use it in GitHub Desktop.
Save alanwillms/0f96b0a768d5d107aa6e to your computer and use it in GitHub Desktop.
module SomeLength
def responds
responds_to?(:foobar) # fails here
end
end
class Items
extend SomeLength
def self.foobar
"Any return"
end
end
puts Items.responds.to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment