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.



144
145
146
# File 'lib/fear/extractor/grammar.rb', line 144

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.



140
141
142
# File 'lib/fear/extractor/grammar.rb', line 140

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