Class: Metro::Model::DimensionsProperty
- Defined in:
- lib/metro/models/properties/dimensions_property.rb
Overview
A dimensions property maintains an width and height.
A dimensions property also defines a ‘width` property and a `height` property which allows a more direct interface. Changing these values will update the dimensions the next time that it is drawn.
Dimensions is stored in the properties as a string and is converted into a Dimensions when it is retrieved within the system. When retrieving the dimensions.
Constant Summary
Constants included from Units
Instance Attribute Summary
Attributes inherited from Property
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_dimensions ⇒ Object
70 71 72 |
# File 'lib/metro/models/properties/dimensions_property.rb', line 70 def default_dimensions Dimensions.parse default_dimensions_params.to_s end |