Skip to content

Instantly share code, notes, and snippets.

@cbetta
Created December 3, 2013 14:11
Show Gist options
  • Select an option

  • Save cbetta/7769767 to your computer and use it in GitHub Desktop.

Select an option

Save cbetta/7769767 to your computer and use it in GitHub Desktop.
class A
def self.foo val
define_method "foo" do
val
end
end
end
class B < A
foo "bar"
def test
puts foo
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment