Class: AmberVM::Functions::Type

Inherits:
Function show all
Defined in:
lib/amber/functions/general/type.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, signature

Methods included from Plugin

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

Class Method Details

.execute(params, env) ⇒ Object



33
34
35
36
37
38
# File 'lib/amber/functions/general/type.rb', line 33

def execute params, env
  if params.length == 1
    return AmberVM::Classes[:string].new(params[0].class)
  else
  end
end