Class: RablRails::Nodes::Attribute
- Inherits:
-
Object
- Object
- RablRails::Nodes::Attribute
- Extended by:
- Forwardable
- Includes:
- Node
- Defined in:
- lib/rabl-rails/nodes/attribute.rb
Instance Attribute Summary collapse
-
#condition ⇒ Object
Returns the value of attribute condition.
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Attribute
constructor
A new instance of Attribute.
Methods included from Node
Constructor Details
#initialize(hash = {}) ⇒ Attribute
Returns a new instance of Attribute.
13 14 15 |
# File 'lib/rabl-rails/nodes/attribute.rb', line 13 def initialize(hash = {}) @hash = hash end |
Instance Attribute Details
#condition ⇒ Object
Returns the value of attribute condition.
11 12 13 |
# File 'lib/rabl-rails/nodes/attribute.rb', line 11 def condition @condition end |
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
10 11 12 |
# File 'lib/rabl-rails/nodes/attribute.rb', line 10 def hash @hash end |