Class: Metanorma::Standoc::FormTextareaMacro
- Inherits:
-
Asciidoctor::Extensions::InlineMacroProcessor
- Object
- Asciidoctor::Extensions::InlineMacroProcessor
- Metanorma::Standoc::FormTextareaMacro
- Defined in:
- lib/metanorma/standoc/macros_form.rb
Instance Method Summary collapse
Instance Method Details
#process(_parent, _target, attr) ⇒ Object
30 31 32 33 34 |
# File 'lib/metanorma/standoc/macros_form.rb', line 30 def process(_parent, _target, attr) m = %w(id name rows cols value) .map { |a| attr[a] ? " #{a}='#{attr[a]}'" : nil }.compact %{<textarea #{m.join}/>} end |