Class: Cmdlet::Comparison::Ne

Inherits:
BaseCmdlet show all
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

Methods inherited from BaseCmdlet

#tokenizer

Instance Method Details

#call(lhs, rhs) ⇒ String



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