Sha256: a9463eed05380c4bb543aa54a387a5e8a0cb5c46c948572842cd7f334b9ba832

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

module ObjectWithProperties
  def init_object_with_properties
    @properties = {}
    @properties.default = ""      
  end
  
  def []( key )
    @properties[ key ]
  end
  
  def[]=( key, value )
    @properties[ key ] = value
  end  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gf-ralbum-0.0.2 lib/ralbum-common/object_with_properties.rb
gf-ralbum-0.0.5 lib/ralbum/object_with_properties.rb