Sha256: 5191459150f66c204887fd9644669462715bfa7fb2209a6c503f569e46d8c7d6
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
module Image include DataMapper::Resource is :remixable property :id, Integer, :key => true, :serial => true property :description, String property :path, String # These methods will be available to the class remixing this module # If 'User' remixes 'Images', these methods will be available to a User class # module RemixerClassMethods def test_remixer_class_method 'CLASS METHOD FOR REMIXER' end end # These methods will be available to instantiated objects of the remixing this module # If 'User' remixes 'Images', these methods will be available to a User object # module RemixerInstanceMethods def test_remixer_instance_method 'INSTANCE METHOD FOR REMIXER' end end # These methods will be available to the Generated Remixed Class # If 'User' remixes 'Images', these methods will be available to UserImage class # module RemixeeClassMethods def test_remixee_class_method 'CLASS METHOD FOR REMIXEE' end end # These methods will be available to an instantiated Generated Remixed Class # If 'User' remixes 'Images', these methods will be available to a UserImage object # module RemixeeInstanceMethods def test_remixee_instance_method 'INSTANCE METHOD FOR REMIXEE' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm-is-remixable-0.9.8 | spec/data/image.rb |