Sha256: 9d766af54a7338c7b2b0dd07dd067cbb06a5633ae87c3b3d99577df95e267c51

Contents?: true

Size: 277 Bytes

Versions: 6

Compression:

Stored size: 277 Bytes

Contents

require 'ostruct'
# this is a non-aquatic object
class Grounded 
  def initialize( hash = {} )
    hash.each do |key, value|
      send( "#{key}=", value )
    end 
  end
  
  attr_accessor :hash_up, # a hash
   :arraynged, # an array
   :openly_structured # an ostruct
end    

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
baccigalupi-aqua-0.1.1 spec/object/object_fixtures/grounded.rb
baccigalupi-aqua-0.1.2 spec/object/object_fixtures/grounded.rb
baccigalupi-aqua-0.1.3 spec/object/object_fixtures/grounded.rb
baccigalupi-aqua-0.1.4 spec/object/object_fixtures/grounded.rb
baccigalupi-aqua-0.1.5 spec/object/object_fixtures/grounded.rb
aqua-0.1.6 spec/object/object_fixtures/grounded.rb