Class: RVM::Functions::Not
- Defined in:
- lib/rvm/functions/logic/not.rb
Overview
The Not function is not very complicated, it takes argument, tests if it is_true? and returns the opposite as 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
32 33 34 |
# File 'lib/rvm/functions/logic/not.rb', line 32 def execute params, env RVM::Classes::Boolean.new(! params[0].is_true?) end |
.signature ⇒ Object
36 37 38 |
# File 'lib/rvm/functions/logic/not.rb', line 36 def signature [:any] # adjust the signature here end |