Class: Cmdlet::Comparison::Gte

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

Overview

Gte: Return true if left hand side GREATER THAN or EQUAL TO 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 or EQUAL TO 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 or EQUAL TO right hand side



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

def call(lhs, rhs)
  lhs >= rhs
end