Created
April 20, 2014 19:06
-
-
Save jarinudom/11122330 to your computer and use it in GitHub Desktop.
This file contains 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
require 'active_support' | |
module ImageUtils | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def clean_up | |
puts "Cleaning up" | |
end | |
end | |
end | |
module ImageProcessing | |
extend ActiveSupport::Concern | |
include ImageUtils | |
included do | |
clean_up | |
end | |
end | |
class Image | |
include ImageProcessing | |
end | |
puts "making new image" | |
Image.new | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment