Class: Metro::Model::ArrayProperty

Inherits:
Property
  • Object
show all
Defined in:
lib/metro/models/properties/array_property.rb

Overview

The array property will simply store or retrieve an array.

Constant Summary

Constants included from Units

Units::Bounds

Instance Attribute Summary

Attributes inherited from Property

#block, #model, #options

Instance Method Summary collapse

Methods inherited from Property

define_property, defined_properties, get, #get, get_or_set, gets, hash_with_default_to_nil, inherited, #initialize, properties, properties_hash, property, #set, set, sets

Constructor Details

This class inherits a constructor from Metro::Model::Property

Instance Method Details

#default_valueObject



17
18
19
# File 'lib/metro/models/properties/array_property.rb', line 17

def default_value
  options[:default] or []
end