Class: Cmdlet::Comparison::Gt

Inherits:
BaseCmdlet show all
Defined in:
lib/cmdlet/comparison/gt.rb

Overview

Gt: Return true if left hand side GREATER THAN right hand side

Instance Method Summary collapse

Methods inherited from BaseCmdlet

#tokenizer

Instance Method Details

#call(lhs, rhs) ⇒ String

Returns truthy value if left hand side GREATER THAN right hand side.

Parameters:

  • lhs (Object)
    • lhs - left hand side value

  • rhs (Object)
    • rhs - right hand side value

Returns:

  • (String)

    truthy value if left hand side GREATER THAN right hand side



12
13
14
# File 'lib/cmdlet/comparison/gt.rb', line 12

def call(lhs, rhs)
  lhs > rhs
end