Class: Wombat::Property
- Inherits:
-
Object
- Object
- Wombat::Property
- Defined in:
- lib/wombat/property.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
Returns the value of attribute callback.
-
#format ⇒ Object
Returns the value of attribute format.
-
#name ⇒ Object
Returns the value of attribute name.
-
#namespaces ⇒ Object
Returns the value of attribute namespaces.
-
#result ⇒ Object
Returns the value of attribute result.
-
#selector ⇒ Object
Returns the value of attribute selector.
Instance Method Summary collapse
- #flatten(depth = nil) ⇒ Object
-
#initialize(options) ⇒ Property
constructor
A new instance of Property.
Constructor Details
permalink #initialize(options) ⇒ Property
Returns a new instance of Property.
5 6 7 8 9 10 11 |
# File 'lib/wombat/property.rb', line 5 def initialize() @name = [:name] @selector = [:selector] @format = [:format] @namespaces = [:namespaces] @callback = [:callback] end |
Instance Attribute Details
permalink #callback ⇒ Object
Returns the value of attribute callback.
3 4 5 |
# File 'lib/wombat/property.rb', line 3 def callback @callback end |
permalink #format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/wombat/property.rb', line 3 def format @format end |
permalink #name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/wombat/property.rb', line 3 def name @name end |
permalink #namespaces ⇒ Object
Returns the value of attribute namespaces.
3 4 5 |
# File 'lib/wombat/property.rb', line 3 def namespaces @namespaces end |
permalink #result ⇒ Object
Returns the value of attribute result.
3 4 5 |
# File 'lib/wombat/property.rb', line 3 def result @result end |
permalink #selector ⇒ Object
Returns the value of attribute selector.
3 4 5 |
# File 'lib/wombat/property.rb', line 3 def selector @selector end |
Instance Method Details
permalink #flatten(depth = nil) ⇒ Object
[View source]
13 14 15 |
# File 'lib/wombat/property.rb', line 13 def flatten(depth = nil) depth ? result[depth] : result end |