Class: CloudSesame::Query::AST::StringValue

Inherits:
Abstract::Value show all
Defined in:
lib/cloud_sesame/query/ast/string_value.rb

Direct Known Subclasses

DateValue

Constant Summary collapse

SINGLE_QUATE =
Regexp.new(/\'/).freeze
ESCAPE_QUATE =
"\\'".freeze

Constants inherited from Abstract::Value

Abstract::Value::DIGIT_FORMAT, Abstract::Value::RANGE_FORMAT

Instance Attribute Summary

Attributes inherited from Abstract::Value

#changed, #compiled, #value

Class Method Summary collapse

Methods inherited from Abstract::Value

#==, #compile, datetime?, #initialize, numeric?, range?, string_numeric?, string_range?, #to_s

Constructor Details

This class inherits a constructor from CloudSesame::Query::AST::Abstract::Value

Class Method Details

.parse(value) ⇒ Object



9
10
11
# File 'lib/cloud_sesame/query/ast/string_value.rb', line 9

def self.parse(value)
	new value.to_s if value
end