Sha256: 239094b5b7f400a9fb909402f5e9a4fff80c118b14074becdd6711faa374b5bb

Contents?: true

Size: 396 Bytes

Versions: 32

Compression:

Stored size: 396 Bytes

Contents

module Cuboid
module Support
module Mixins

module Parts

    def self.included( base )
        dir = Utilities.caller_path( 3 ).split( '.rb', 2 ).first
        Dir.glob( "#{dir}/parts/**/*.rb" ).each { |f| require f }

        parts = base.const_get( :Parts )
        parts.constants.each do |part_name|
            base.include parts.const_get( part_name )
        end
    end

end
end
end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
cuboid-0.2.11 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.10 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.9 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.8 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.7 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.6 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.5 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.4.2 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.4.1 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.4 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.3 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.2 lib/cuboid/support/mixins/parts.rb
cuboid-0.2.1 lib/cuboid/support/mixins/parts.rb
cuboid-0.2 lib/cuboid/support/mixins/parts.rb
cuboid-0.1.9.1 lib/cuboid/support/mixins/parts.rb
cuboid-0.1.9 lib/cuboid/support/mixins/parts.rb
cuboid-0.1.8 lib/cuboid/support/mixins/parts.rb
cuboid-0.1.7 lib/cuboid/support/mixins/parts.rb
cuboid-0.1.6.1 lib/cuboid/support/mixins/parts.rb
cuboid-0.1.6 lib/cuboid/support/mixins/parts.rb