Module: Leftovers::Processors::AddDefinitionNode
- Defined in:
- lib/leftovers/processors/add_definition_node.rb
Class Method Summary collapse
Class Method Details
.process(str, current_node, _matched_node, acc) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/leftovers/processors/add_definition_node.rb', line 6 def self.process(str, current_node, _matched_node, acc) return unless str return if str.empty? acc.add_definition_node DefinitionNode.new(current_node, name: str.to_sym) end |