Sha256: 711fbedb1aa8121bce31f97f931c610b7383a144bace8aa54803d2c0b50fad6c
Contents?: true
Size: 224 Bytes
Versions: 3
Compression:
Stored size: 224 Bytes
Contents
module Basic101 class ExpFunction < Function def name 'EXP' end def call(runtime, args) check_args args, [BasicNumeric] value = args.first.eval(runtime) value.exp end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic101-0.4.0 | lib/basic101/exp_function.rb |
basic101-0.2.0 | lib/basic101/exp_function.rb |
basic101-0.1.0 | lib/basic101/exp_function.rb |