Skip to content

Instantly share code, notes, and snippets.

@leoallen85
Created May 7, 2015 14:14
Show Gist options
  • Save leoallen85/104079b6a89103e1bb72 to your computer and use it in GitHub Desktop.
Save leoallen85/104079b6a89103e1bb72 to your computer and use it in GitHub Desktop.
class Base
def call
p "Base"
end
end
module Mixin
def call
p "Mixin"
super
end
end
module AnotherMixin
def call
p "AnotherMixin"
super
end
end
class User < Base
include Mixin
include AnotherMixin
def call
p "User"
super
end
end
User.new.call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment