Class: RVM::Functions::Lt

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

Overview

The Lt function tests if the first argument passed is lower 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/lt.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/lt.rb', line 41

def signature
  [:any] 
end