Class: Fear::Extractor::Grammar::NonEmptyArray Private

Inherits:
Node
  • Object
show all
Defined in:
lib/fear/extractor/grammar.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#to_matcherObject

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.



25
26
27
28
# File 'lib/fear/extractor/grammar.rb', line 25

def to_matcher
  head, tail = elements
  ArrayMatcher.new(head: head.to_matcher, tail: tail.to_matcher, node: self)
end