class Asciidoctor::Standoc::FormInputMacro
Public Instance Methods
process(_parent, target, attr)
click to toggle source
# File lib/asciidoctor/standoc/macros_form.rb, line 7 def process(_parent, target, attr) m = %w(id name value disabled readonly checked maxlength minlength) .map { |a| attr[a] ? " #{a}='#{attr[a]}'" : nil }.compact %{<input type='#{target}' #{m.join}/>} end