Sha256: 9aed4989c3680f5a0b225be025222f8153a52cb8646d009e613309c2a7e147da
Contents?: true
Size: 264 Bytes
Versions: 3
Compression:
Stored size: 264 Bytes
Contents
# frozen_string_literal: true module Basic101 class AscFunction < Function def name 'ASC' end def call(runtime, args) check_args args, [BasicString] value = args.first.eval(runtime) value.to_string.asc end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic101-1.0.2 | lib/basic101/asc_function.rb |
basic101-1.0.1 | lib/basic101/asc_function.rb |
basic101-1.0.0 | lib/basic101/asc_function.rb |