Sha256: 28638c8b67bb7d2ffbd937862afbfa8327fbce36c853c530c18f05ef2a3a2ace

Contents?: true

Size: 290 Bytes

Versions: 9

Compression:

Stored size: 290 Bytes

Contents

module ArrayLogic
  
  # Basic object used in testing 
  class Thing
    attr_accessor :id
    
    def initialize(number)
      @id = number
    end
    
    def self.make(number)
      things = Hash.new
      (1..number).each{|n| things[n] = new(n)}
      return things
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
array_logic-0.1.2 lib/array_logic/thing.rb
array_logic-0.1.1 lib/array_logic/thing.rb
array_logic-0.1.0 lib/array_logic/thing.rb
array_logic-0.0.6 lib/array_logic/thing.rb
array_logic-0.0.5 lib/array_logic/thing.rb
array_logic-0.0.4 lib/array_logic/thing.rb
array_logic-0.0.3 lib/array_logic/thing.rb
array_logic-0.0.2 lib/array_logic/thing.rb
array_logic-0.0.1 lib/array_logic/thing.rb