class CriteriaOperator::OperandValue
Operator that holds a value. This operator is an operand, thus it is always a leaf of the expression tree.
Attributes
value[RW]
@return [Object] the stored value.
Public Class Methods
new(value)
click to toggle source
The constructor for this operand. Expects the value as parameter. @param [Object] value the value of the operand @return [Void]
# File lib/criteria_operator/operand_value.rb, line 15 def initialize(value) self.value = value end
Public Instance Methods
clone()
click to toggle source
Clones an operator with all sub-operators, creating a deep copy. Since this is an operand, there are no sub-operators to clone. Implementation of the abstract {BaseOperator#clone}. @return [OperandValue] the cloned operator
# File lib/criteria_operator/operand_value.rb, line 23 def clone OperandValue.new self.value end