Created
June 10, 2015 16:00
-
-
Save mikecmpbll/f93009eb9bbc4c9e033c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TestConcern | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def foobar(a,b,c) | |
puts "doin sum cool shiz in hurr liek: #{a}, #{b} and #{c}" | |
end | |
end | |
end | |
class TestClass | |
include TestConcern | |
foobar("some", "cool", "args") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment