Class: RablRails::Nodes::Attribute

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Node
Defined in:
lib/rabl-rails/nodes/attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Node

#accept

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

#conditionObject

Returns the value of attribute condition.



11
12
13
# File 'lib/rabl-rails/nodes/attribute.rb', line 11

def condition
  @condition
end

#hashObject (readonly)

Returns the value of attribute hash.



10
11
12
# File 'lib/rabl-rails/nodes/attribute.rb', line 10

def hash
  @hash
end