Class: JSONP3::Path::StringLiteral

Inherits:
FilterExpressionLiteral show all
Defined in:
lib/json_p3/path/filter.rb

Overview

A double or single quoted string literal.

Instance Attribute Summary

Attributes inherited from FilterExpressionLiteral

#value

Attributes inherited from Expression

#token

Instance Method Summary collapse

Methods inherited from FilterExpressionLiteral

#==, #evaluate, #hash, #initialize

Methods inherited from Expression

#evaluate, #initialize

Constructor Details

This class inherits a constructor from JSONP3::Path::FilterExpressionLiteral

Instance Method Details

#to_sObject



122
123
124
# File 'lib/json_p3/path/filter.rb', line 122

def to_s
  JSONP3::Path.canonical_string(@value)
end