Sha256: 245d4c901333cae775a71e5d6d62cbfb90044343f6ed47cf107a76a9902680f1

Contents?: true

Size: 294 Bytes

Versions: 19

Compression:

Stored size: 294 Bytes

Contents

module Kuhsaft
  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

19 entries across 19 versions & 2 rubygems

Version Path
kuhsaft-2.6.3 app/models/kuhsaft/partition.rb
kuhsaft-2.6.2 app/models/kuhsaft/partition.rb
kuhsaft-2.6.1 app/models/kuhsaft/partition.rb
kuhsaft-2.5.2 app/models/kuhsaft/partition.rb
kuhsaft-2.6.0 app/models/kuhsaft/partition.rb
kuhsaft-2.5.1 app/models/kuhsaft/partition.rb
kuhsaft-2.5.0 app/models/kuhsaft/partition.rb
qbrick-2.5.0.pre app/models/kuhsaft/partition.rb
kuhsaft-2.4.3 app/models/kuhsaft/partition.rb
kuhsaft-2.4.2 app/models/kuhsaft/partition.rb
kuhsaft-2.4.1 app/models/kuhsaft/partition.rb
kuhsaft-2.4.0 app/models/kuhsaft/partition.rb
kuhsaft-2.3.6 app/models/kuhsaft/partition.rb
kuhsaft-2.3.5 app/models/kuhsaft/partition.rb
kuhsaft-2.3.4 app/models/kuhsaft/partition.rb
kuhsaft-2.3.3 app/models/kuhsaft/partition.rb
kuhsaft-2.3.2 app/models/kuhsaft/partition.rb
kuhsaft-2.3.1 app/models/kuhsaft/partition.rb
kuhsaft-2.3.0 app/models/kuhsaft/partition.rb