Class: Arel::Nodes::TSQuery
- Inherits:
-
Node
- Object
- Node
- Arel::Nodes::TSQuery
- Defined in:
- lib/arel/nodes/ts_query.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(expression, language: nil) ⇒ TSQuery
constructor
A new instance of TSQuery.
Constructor Details
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
7 8 9 |
# File 'lib/arel/nodes/ts_query.rb', line 7 def expression @expression end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
7 8 9 |
# File 'lib/arel/nodes/ts_query.rb', line 7 def language @language end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
18 19 20 21 22 |
# File 'lib/arel/nodes/ts_query.rb', line 18 def eql? other self.class == other.class && self.expression == other.expression && self.language == other.language end |
#hash ⇒ Object
14 15 16 |
# File 'lib/arel/nodes/ts_query.rb', line 14 def hash [@expression, @language].hash end |