class Asciidoctor::Standoc::FormOptionMacro
Public Instance Methods
process(parent, _target, attr)
click to toggle source
# File lib/asciidoctor/standoc/macros_form.rb, line 55 def process(parent, _target, attr) m = %w(disabled value) .map { |a| attr[a] ? " #{a}='#{attr[a]}'" : nil }.compact out = Asciidoctor::Inline.new(parent, :quoted, attr["text"]).convert %{<option #{m.join}">#{out}</option>} end