Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created September 29, 2012 21:13
Show Gist options
  • Select an option

  • Save havenwood/3805202 to your computer and use it in GitHub Desktop.

Select an option

Save havenwood/3805202 to your computer and use it in GitHub Desktop.
Example of Calling an Eigenclass Method on a Module
module Example
def self.main
"I'm the eigenclass method called #main on the #{self} #{self.class}"
end
end
var = Example
var.main
#=> "I'm the eigenclass method called #main on the Example Module"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment