Method: Erector::Element#_empty_element

Defined in:
lib/erector/element.rb

#_empty_element(tag_name, attributes = {}) ⇒ Object



105
106
107
108
109
# File 'lib/erector/element.rb', line 105

def _empty_element(tag_name, attributes={})
  promise = Promise.new(output, tag_name, attributes, true, newliney?(tag_name))
  promise._render
  promise
end