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