Method: StringDoc.significant
- Defined in:
- lib/string_doc.rb
.significant(name, object, descend: true) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Registers a significant node with a name and an object to handle parsing.
45 46 47 |
# File 'lib/string_doc.rb', line 45 def significant(name, object, descend: true) significant_types[name] = { object: object, descend: descend } end |