Method: IsoDoc::HtmlFunction::Form#option_parse

Defined in:
lib/isodoc/html_function/form.rb

#option_parse(node, out) ⇒ Object



44
45
46
47
48
49
50
51
52
53
# File 'lib/isodoc/html_function/form.rb', line 44

def option_parse(node, out)
  out.option **attr_code(
    disabled: node["disabled"], selected: node["selected"],
    value: node["value"]
  ) do |o|
    node.children.each do |n|
      parse(n, o)
    end
  end
end