Method: Finitio::Syntax::Node::ClassHelpers#capture_str
- Defined in:
- lib/finitio/syntax/node.rb
#capture_str(*names) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/finitio/syntax/node.rb', line 40 def capture_str(*names) names.each do |name| define_method(name) do x = captures[name].first x && x.to_s end end end |