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.



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

def initialize(hash = {})
  @hash = hash
end

Instance Attribute Details

#hashObject (readonly)

Returns the value of attribute hash.



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

def hash
  @hash
end