Class: NodeQuery::Compiler::Integer
- Inherits:
-
Object
- Object
- NodeQuery::Compiler::Integer
- Includes:
- Comparable
- Defined in:
- lib/node_query/compiler/integer.rb
Overview
Integer represents a ruby integer value.
Constant Summary
Constants included from Comparable
Comparable::ARRAY_VALID_OPERATORS, Comparable::NUMBER_VALID_OPERATORS, Comparable::REGEXP_VALID_OPERATORS, Comparable::SIMPLE_VALID_OPERATORS, Comparable::STRING_VALID_OPERATORS
Instance Method Summary collapse
-
#initialize(value:, adapter:) ⇒ Integer
constructor
Initialize a Integer.
- #to_s ⇒ Object
-
#valid_operators ⇒ Array
Get valid operators.
Methods included from Comparable
#actual_value, #expected_value, #is_equal?, #match?, #valid_operator?
Constructor Details
#initialize(value:, adapter:) ⇒ Integer
Initialize a Integer.
11 12 13 14 |
# File 'lib/node_query/compiler/integer.rb', line 11 def initialize(value:, adapter:) @value = value @adapter = adapter end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/node_query/compiler/integer.rb', line 22 def to_s @value.to_s end |
#valid_operators ⇒ Array
Get valid operators.
18 19 20 |
# File 'lib/node_query/compiler/integer.rb', line 18 def valid_operators NUMBER_VALID_OPERATORS end |