Skip to content

Instantly share code, notes, and snippets.

@oceansize
Forked from leoallen85/method_lookup_path.rb
Last active August 29, 2015 14:20

Revisions

  1. @leoallen85 leoallen85 renamed this gist May 7, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @leoallen85 leoallen85 created this gist May 7, 2015.
    32 changes: 32 additions & 0 deletions blah.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    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