Skip to content

Instantly share code, notes, and snippets.

@jarinudom
Created April 20, 2014 19:06
Show Gist options
  • Save jarinudom/11122330 to your computer and use it in GitHub Desktop.
Save jarinudom/11122330 to your computer and use it in GitHub Desktop.
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