Sha256: ac4524054f4b3023cb9defc69acefc147bc18524af65bb01734263122ddc181f
Contents?: true
Size: 251 Bytes
Versions: 3
Compression:
Stored size: 251 Bytes
Contents
# frozen_string_literal: true module Basic101 class LogFunction < Function def name 'LOG' end def call(runtime, args) check_args args, [BasicNumeric] arg = args.first arg.eval(runtime).log end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic101-1.0.2 | lib/basic101/log_function.rb |
basic101-1.0.1 | lib/basic101/log_function.rb |
basic101-1.0.0 | lib/basic101/log_function.rb |