Sha256: 39efbf0a344e16ca55d00f3f458b0afcb29eda9f77963672005ac998f04d86bd
Contents?: true
Size: 393 Bytes
Versions: 3
Compression:
Stored size: 393 Bytes
Contents
module Zeamays class Cob module Growth @rows = [] def initialize(rows = []) @rows = rows end def grow!(*row) # Expanding single item Array if row.is_a? Array and row.length == 1 and row[0].is_a? Array row = row[0] end @rows << row end def grow(*row) grow!(*row) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zeamays-0.0.7 | lib/zeamays/cob/growth.rb |
zeamays-0.0.6 | lib/zeamays/cob/growth.rb |
zeamays-0.0.5 | lib/zeamays/cob/growth.rb |