Class: RVM::Functions::Neq
- Defined in:
- lib/rvm/functions/general/neq.rb
Overview
The Eq function tests if the two passed parameters are unequal, using the != opperator.
It returns a Boolean.
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
10 11 12 13 14 15 |
# File 'lib/rvm/functions/general/neq.rb', line 10 def execute params, env if params.length == 2 return RVM::Classes[:boolean].new(params[0] != params[1]) else end end |
.signature ⇒ Object
17 18 19 |
# File 'lib/rvm/functions/general/neq.rb', line 17 def signature [:any] end |