Sha256: 3b2c126195b22e4e5dcb3f3fa5ea93f89c21067e8e44087527a280e0a105c4ac

Contents?: true

Size: 329 Bytes

Versions: 45

Compression:

Stored size: 329 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)
        [
          ['span4', 'span8'],
          ['span6', 'span6'],
          ['span8', 'span4']
        ][style][idx]
      end
    end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
kuhsaft-1.4.1 app/models/kuhsaft/partition.rb
kuhsaft-1.4.0 app/models/kuhsaft/partition.rb
kuhsaft-1.3.1 app/models/kuhsaft/partition.rb
kuhsaft-1.2.15 app/models/kuhsaft/partition.rb
kuhsaft-1.2.14 app/models/kuhsaft/partition.rb
kuhsaft-1.2.13 app/models/kuhsaft/partition.rb
kuhsaft-1.2.12 app/models/kuhsaft/partition.rb
kuhsaft-1.2.11 app/models/kuhsaft/partition.rb
kuhsaft-1.2.10 app/models/kuhsaft/partition.rb
kuhsaft-1.2.9 app/models/kuhsaft/partition.rb
kuhsaft-1.2.8 app/models/kuhsaft/partition.rb
kuhsaft-1.2.7 app/models/kuhsaft/partition.rb
kuhsaft-1.2.6 app/models/kuhsaft/partition.rb
kuhsaft-1.2.5 app/models/kuhsaft/partition.rb
kuhsaft-1.2.4 app/models/kuhsaft/partition.rb
kuhsaft-1.2.3 app/models/kuhsaft/partition.rb
kuhsaft-1.2.2 app/models/kuhsaft/partition.rb
kuhsaft-1.2.1 app/models/kuhsaft/partition.rb
kuhsaft-1.2.0 app/models/kuhsaft/partition.rb
kuhsaft-1.1.1 app/models/kuhsaft/partition.rb