class RablRails::Nodes::Attribute
Attributes
condition[RW]
hash[R]
Public Class Methods
new(hash = {})
click to toggle source
# File lib/rabl-rails/nodes/attribute.rb, line 7 def initialize(hash = {}) @hash = hash end
Public Instance Methods
[]=(key, value)
click to toggle source
# File lib/rabl-rails/nodes/attribute.rb, line 11 def []=(key, value) @hash[key] = value end
each(&block)
click to toggle source
# File lib/rabl-rails/nodes/attribute.rb, line 15 def each(&block) @hash.each(&block) end