Skip to content

Instantly share code, notes, and snippets.

@olvap
Last active December 20, 2015 05:49
Show Gist options
  • Select an option

  • Save olvap/6081002 to your computer and use it in GitHub Desktop.

Select an option

Save olvap/6081002 to your computer and use it in GitHub Desktop.
module Comparable
def hola
puts "hola jose"
end
end
class Person
include Comparable
end
Person.new.hola
#=> "hola jose"
module Comparable
class Person
def hola
puts "hola dentro del comparable"
end
end
end
Comparable::Person.new.hola
# => "hola dentro del comparable"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment