Class: Sapphire::DSL::EqualsComparison
- Inherits:
-
Comparison
- Object
- Comparison
- Sapphire::DSL::EqualsComparison
- Defined in:
- lib/sapphire/DSL/Comparisons/EqualsComparison.rb
Instance Attribute Summary
Attributes inherited from Comparison
Instance Method Summary collapse
Methods inherited from Comparison
#CompareWith, #Create, #Evaluate, #Output, #execute, #initialize, #left, #left=, #right, #right=
Constructor Details
This class inherits a constructor from Sapphire::DSL::Comparison
Instance Method Details
#Compare(left, right) ⇒ Object
5 6 7 8 |
# File 'lib/sapphire/DSL/Comparisons/EqualsComparison.rb', line 5 def Compare(left, right) return @comparator.Compare(left == right, true) if @comparator != nil left == right end |
#Text ⇒ Object
10 11 12 |
# File 'lib/sapphire/DSL/Comparisons/EqualsComparison.rb', line 10 def Text "" end |