Class: AmberVM::Functions::BitwiseAnd
- Inherits:
-
Function
show all
- Defined in:
- lib/amber/functions/bitwise/bitwise_and.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
31
32
33
|
# File 'lib/amber/functions/bitwise/bitwise_and.rb', line 31
def self.execute params, env
AmberVM::Classes::Number.new(params.shift.to_i & params.shift.to_i)
end
|