Sha256: 026236b25319d7d06c1d6f825b15b622f49ec70fe1fbdfa33633585c7d9388aa

Contents?: true

Size: 203 Bytes

Versions: 3

Compression:

Stored size: 203 Bytes

Contents

module Basic101

  class ValFunction < Function

    def name
      'VAL'
    end

    def call(runtime, args)
      check_args args, [BasicString]
      args.first.eval(runtime).val
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basic101-0.4.0 lib/basic101/val_function.rb
basic101-0.2.0 lib/basic101/val_function.rb
basic101-0.1.0 lib/basic101/val_function.rb