Sha256: 7593bdbf6cf2c1f51f6358fb6897ce9ce167a48a05c659a717fa4664b247e104

Contents?: true

Size: 559 Bytes

Versions: 30

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

module Cmdlet
  # Comparison helpers, eg. or, and, equal, not equal, less than, greater than etc.
  module Comparison
    # Gte: Return true if left hand side GREATER THAN or EQUAL TO right hand side
    class Gte < Cmdlet::BaseCmdlet
      #
      # @param [Object] lhs - lhs - left hand side value
      # @param [Object] rhs - rhs - right hand side value
      # @return [String] truthy value if left hand side GREATER THAN or EQUAL TO  right hand side
      def call(lhs, rhs)
        lhs >= rhs
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
cmdlet-0.6.1 lib/cmdlet/comparison/gte.rb
cmdlet-0.6.0 lib/cmdlet/comparison/gte.rb
cmdlet-0.5.0 lib/cmdlet/comparison/gte.rb
cmdlet-0.4.2 lib/cmdlet/comparison/gte.rb
cmdlet-0.4.1 lib/cmdlet/comparison/gte.rb
cmdlet-0.4.0 lib/cmdlet/comparison/gte.rb
cmdlet-0.3.0 lib/cmdlet/comparison/gte.rb
cmdlet-0.2.1 lib/cmdlet/comparison/gte.rb
cmdlet-0.2.0 lib/cmdlet/comparison/gte.rb
cmdlet-0.1.2 lib/cmdlet/comparison/gte.rb