Class: CloudSesame::Query::AST::StringValue
- Inherits:
-
Abstract::Value
- Object
- Abstract::Value
- CloudSesame::Query::AST::StringValue
- Defined in:
- lib/cloud_sesame/query/ast/string_value.rb
Direct Known Subclasses
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
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 |