Sha256: abe99f98a0ec507275e1042ace98acaed0f8b2373e1f32699160ed1144dfc61b

Contents?: true

Size: 293 Bytes

Versions: 16

Compression:

Stored size: 293 Bytes

Contents

module Qbrick
  class Partition
    attr_reader :name, :id

    def initialize(name, id)
      @name = name
      @id = id
    end

    def self.style_for_index(style, idx)
      [
        %w(span8 span4),
        %w(span6 span6),
        %w(span4 span8)
      ][style][idx]
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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