Sha256: 8de8a940b4ce98f3ba3c7382d597f4657d32bafd664aa44615108d085aec0a99

Contents?: true

Size: 334 Bytes

Versions: 16

Compression:

Stored size: 334 Bytes

Contents

module Qbrick
  module Gridded
    def self.included(base)
      base.extend(ClassMethods)
      base.send :include, InstanceMethods
    end

    module InstanceMethods
      def gridded?
        col_count != 0
      end
    end

    module ClassMethods
      def available_grid_sizes
        (0..12).to_a
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 lib/qbrick/gridded.rb
qbrick-2.7 lib/qbrick/gridded.rb
qbrick-2.6.10 lib/qbrick/gridded.rb
qbrick-2.6.9 lib/qbrick/gridded.rb
qbrick-2.6.8 lib/qbrick/gridded.rb
qbrick-2.6.7 lib/qbrick/gridded.rb
qbrick-2.6.6 lib/qbrick/gridded.rb
qbrick-2.6.5 lib/qbrick/gridded.rb
qbrick-2.6.4 lib/qbrick/gridded.rb
qbrick-2.6.3 lib/qbrick/gridded.rb
qbrick-2.6.2 lib/qbrick/gridded.rb
qbrick-2.6.1 lib/qbrick/gridded.rb
qbrick-2.6.0 lib/qbrick/gridded.rb
qbrick-2.5.2 lib/qbrick/gridded.rb
qbrick-2.5.1 lib/qbrick/gridded.rb
qbrick-2.5.0 lib/qbrick/gridded.rb