Class: Squeel::Nodes::Unary
- Inherits:
-
Object
- Object
- Squeel::Nodes::Unary
- Includes:
- PredicateOperators
- Defined in:
- lib/squeel/nodes/unary.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
-
#initialize(expr) ⇒ Unary
constructor
A new instance of Unary.
Methods included from PredicateOperators
Constructor Details
#initialize(expr) ⇒ Unary
Returns a new instance of Unary.
10 11 12 |
# File 'lib/squeel/nodes/unary.rb', line 10 def initialize(expr) @expr = expr end |
Instance Attribute Details
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
8 9 10 |
# File 'lib/squeel/nodes/unary.rb', line 8 def expr @expr end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
14 15 16 17 |
# File 'lib/squeel/nodes/unary.rb', line 14 def eql?(other) self.class == other.class && self.expr == other.expr end |