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