Class: AEMReference::ComparisonTest
- Defined in:
- lib/_aem/aemreference.rb
Overview
Comparison tests
Direct Known Subclasses
BeginsWith, Contains, EndsWith, Equals, GreaterOrEquals, GreaterThan, LessOrEquals, LessThan
Instance Method Summary collapse
- #AEM_pack_self(codecs) ⇒ Object
- #AEM_resolve(obj) ⇒ Object
-
#initialize(operand1, operand2) ⇒ ComparisonTest
constructor
A new instance of ComparisonTest.
- #to_s ⇒ Object
Methods inherited from Test
Methods inherited from Query
#==, #AEM_comparable, #hash, #inspect
Constructor Details
#initialize(operand1, operand2) ⇒ ComparisonTest
Returns a new instance of ComparisonTest.
785 786 787 788 789 |
# File 'lib/_aem/aemreference.rb', line 785 def initialize(operand1, operand2) super() @_operand1 = operand1 @_operand2 = operand2 end |
Instance Method Details
#AEM_pack_self(codecs) ⇒ Object
799 800 801 802 803 804 805 |
# File 'lib/_aem/aemreference.rb', line 799 def AEM_pack_self(codecs) return AEMReference.pack_list_as(KAE::TypeCompDescriptor, [ [KAE::KeyAEObject1, codecs.pack(@_operand1)], [KAE::KeyAECompOperator, self.class::Operator], [KAE::KeyAEObject2, codecs.pack(@_operand2)] ]) end |
#AEM_resolve(obj) ⇒ Object
795 796 797 |
# File 'lib/_aem/aemreference.rb', line 795 def AEM_resolve(obj) return @_operand1.AEM_resolve(obj).send(self.class::Name, @_operand2) end |
#to_s ⇒ Object
791 792 793 |
# File 'lib/_aem/aemreference.rb', line 791 def to_s return "#{@_operand1.inspect}.#{self.class::Name}(#{@_operand2.inspect})" end |