Sha256: 06adb6b86c435214513af4e4023cb28832a5929c9fc757da46e913ff982d95f1
Contents?: true
Size: 255 Bytes
Versions: 3
Compression:
Stored size: 255 Bytes
Contents
# frozen_string_literal: true 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-1.0.2 | lib/basic101/cos_function.rb |
basic101-1.0.1 | lib/basic101/cos_function.rb |
basic101-1.0.0 | lib/basic101/cos_function.rb |