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.1.0 app/models/kuhsaft/partition.rb
kuhsaft-1.0.3 app/models/kuhsaft/partition.rb
kuhsaft-1.0.2 app/models/kuhsaft/partition.rb
kuhsaft-1.0.1 app/models/kuhsaft/partition.rb
kuhsaft-1.0.0 app/models/kuhsaft/partition.rb