Class: RVM::Functions::Cos
- Defined in:
- lib/rvm/functions/math/cos.rb
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
29 30 31 |
# File 'lib/rvm/functions/math/cos.rb', line 29 def Cos.execute params, env RVM::Classes[:number].new(Math::cos(params.shift.value)) end |
.signature ⇒ Object
33 34 35 |
# File 'lib/rvm/functions/math/cos.rb', line 33 def Cos.signature [:number] end |