Class: RVM::Functions::Gte

Inherits:
Function show all
Defined in:
lib/rvm/functions/general/gte.rb

Overview

The Gte function tests if the first argument passed is greater or equal to then the second one, using the >= opperator.

A Boolean is returned.

Class Method Summary collapse

Methods inherited from Function

call, data_type, execargs, method_missing

Methods included from Plugin

#helper, #included, #plugin_host, #plugin_id, #register_for

Class Method Details

.execute(params, env) ⇒ Object



34
35
36
37
38
39
# File 'lib/rvm/functions/general/gte.rb', line 34

def execute params, env
  if params.length == 2
    return RVM::Classes[:boolean].new(params[0] >= params[1])
  else
  end
end

.signatureObject



41
42
43
# File 'lib/rvm/functions/general/gte.rb', line 41

def signature
  [:any] 
end