Module: Smck::Components
- Defined in:
- lib/smck.rb,
lib/smck/base_markup.rb
Overview
Components module contains methods for rendering different tags of markup They are defined as instance methods rather than class methods to allow avoiding send, which is insecure
Instance Method Summary collapse
-
#ignore(data, parent) ⇒ Object
core markup definitions.
- #str(data, parent) ⇒ Object
Instance Method Details
#ignore(data, parent) ⇒ Object
core markup definitions
18 |
# File 'lib/smck.rb', line 18 def ignore(data, parent) end |
#str(data, parent) ⇒ Object
20 21 22 |
# File 'lib/smck.rb', line 20 def str(data, parent) parent.add_child create_text_node data end |