Class: Cmdlet::Comparison::Ne
- Inherits:
-
BaseCmdlet
- Object
- BaseCmdlet
- Cmdlet::Comparison::Ne
- Defined in:
- lib/cmdlet/comparison/ne.rb
Overview
Ne: Return true if left hand side is NOT equal to right hand side
Instance Method Summary collapse
-
#call(lhs, rhs) ⇒ String
Truthy value if left hand side is NOT equal to right hand side.
Methods inherited from BaseCmdlet
Instance Method Details
#call(lhs, rhs) ⇒ String
Returns truthy value if left hand side is NOT equal to right hand side.
12 13 14 15 16 17 |
# File 'lib/cmdlet/comparison/ne.rb', line 12 def call(lhs, rhs) lhs = lhs.to_s if lhs.is_a?(Symbol) rhs = rhs.to_s if rhs.is_a?(Symbol) lhs != rhs end |