Sha256: 2b0a6f3de96c689943658785cfc3a9a02fb35401ea05bee6347bee438c468766

Contents?: true

Size: 234 Bytes

Versions: 3

Compression:

Stored size: 234 Bytes

Contents

# frozen_string_literal: true

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-1.0.2 lib/basic101/val_function.rb
basic101-1.0.1 lib/basic101/val_function.rb
basic101-1.0.0 lib/basic101/val_function.rb