Sha256: dcb38cd224387a231ad182e473d61a578a0caeb588aed8bd2451521ecd028313

Contents?: true

Size: 329 Bytes

Versions: 5

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kuhsaft-2.2.6 app/models/kuhsaft/partition.rb
kuhsaft-2.2.5 app/models/kuhsaft/partition.rb
kuhsaft-2.2.4 app/models/kuhsaft/partition.rb
kuhsaft-2.2.3 app/models/kuhsaft/partition.rb
kuhsaft-2.2.2 app/models/kuhsaft/partition.rb