Class: Fear::Extractor::Grammar::NamedArraySplat 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

#nameObject

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.


146
147
148
# File 'lib/fear/extractor/grammar.rb', line 146

def name
  text_value[1..-1].to_sym
end

#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.


142
143
144
# File 'lib/fear/extractor/grammar.rb', line 142

def to_matcher
  NamedArraySplatMatcher.new(name: name, node: self)
end