Method: Basic101::AbsFunction#call
- Defined in:
- lib/basic101/abs_function.rb
#call(runtime, args) ⇒ Object
13 14 15 16 17 |
# File 'lib/basic101/abs_function.rb', line 13 def call(runtime, args) check_args args, [BasicNumeric] value = args.first.eval(runtime) value.abs end |