Class: Attributes

Inherits:
Node
  • Object
show all
Defined in:
lib/emerald/nodes/attributes.rb

Overview

The attributes hash for an element

Instance Method Summary collapse

Instance Method Details

#to_html(context) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/emerald/nodes/attributes.rb', line 9

def to_html(context)
  output = ''
  elements.each do |e|
    output += " #{e.elements[0].text_value}=\"#{e.elements[2].to_html(context)}\""
  end
  output
end