Class: SlideField::ObjectRules::Text
- Defined in:
- lib/slidefield/objects/text.rb
Instance Method Summary collapse
Methods inherited from Base
#accepted_children, #default_value, get, #initialize, #matching_properties, #optional_properties, #properties_names, #properties_types, #required_properties, #requirements_of_child, #type_of_property
Constructor Details
This class inherits a constructor from SlideField::ObjectRules::Base
Instance Method Details
#rules ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/slidefield/objects/text.rb', line 3 def rules property :content, :string property :color, :color, [255, 255, 255, 255] property :font, :string, "sans" property :height, :integer, 20 property :width, :integer, 0 property :spacing, :integer, 0 property :align, :string, "left" super end |