Class: Wombat::DSL::Property
- Inherits:
-
Object
- Object
- Wombat::DSL::Property
- Defined in:
- lib/wombat/dsl/property.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
Returns the value of attribute callback.
-
#wombat_property_format ⇒ Object
Returns the value of attribute wombat_property_format.
-
#wombat_property_name ⇒ Object
Returns the value of attribute wombat_property_name.
-
#wombat_property_namespaces ⇒ Object
Returns the value of attribute wombat_property_namespaces.
-
#wombat_property_selector ⇒ Object
Returns the value of attribute wombat_property_selector.
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(name, *args, &block) ⇒ Property
constructor
A new instance of Property.
- #namespaces ⇒ Object
- #selector ⇒ Object
Constructor Details
#initialize(name, *args, &block) ⇒ Property
Returns a new instance of Property.
6 7 8 9 10 11 12 |
# File 'lib/wombat/dsl/property.rb', line 6 def initialize(name, *args, &block) @wombat_property_name = name @wombat_property_selector = args[0] @wombat_property_format = args[1] || :text @wombat_property_namespaces = args[2] @callback = block end |
Instance Attribute Details
#callback ⇒ Object
Returns the value of attribute callback.
4 5 6 |
# File 'lib/wombat/dsl/property.rb', line 4 def callback @callback end |
#wombat_property_format ⇒ Object
Returns the value of attribute wombat_property_format.
4 5 6 |
# File 'lib/wombat/dsl/property.rb', line 4 def wombat_property_format @wombat_property_format end |
#wombat_property_name ⇒ Object
Returns the value of attribute wombat_property_name.
4 5 6 |
# File 'lib/wombat/dsl/property.rb', line 4 def wombat_property_name @wombat_property_name end |
#wombat_property_namespaces ⇒ Object
Returns the value of attribute wombat_property_namespaces.
4 5 6 |
# File 'lib/wombat/dsl/property.rb', line 4 def wombat_property_namespaces @wombat_property_namespaces end |
#wombat_property_selector ⇒ Object
Returns the value of attribute wombat_property_selector.
4 5 6 |
# File 'lib/wombat/dsl/property.rb', line 4 def wombat_property_selector @wombat_property_selector end |
Instance Method Details
#format ⇒ Object
22 23 24 |
# File 'lib/wombat/dsl/property.rb', line 22 def format @wombat_property_format end |
#namespaces ⇒ Object
18 19 20 |
# File 'lib/wombat/dsl/property.rb', line 18 def namespaces @wombat_property_namespaces end |
#selector ⇒ Object
14 15 16 |
# File 'lib/wombat/dsl/property.rb', line 14 def selector @wombat_property_selector end |