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

Direct Known Subclasses

DoubleQuotedStringLiteral

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.



74
75
76
# File 'lib/fear/extractor/grammar.rb', line 74

def to_matcher
  ValueMatcher.new(value: value, node: self)
end

#valueObject

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.



78
79
80
# File 'lib/fear/extractor/grammar.rb', line 78

def value
  elements[1].text_value
end