Sha256: f979930fe7e23c58d772ce34ff3cde45fab401bbc5e2487f64cb412b0e91bf41

Contents?: true

Size: 236 Bytes

Versions: 3

Compression:

Stored size: 236 Bytes

Contents

module Basic101

  class TabFunction < Function

    def name
      'TAB'
    end

    def call(runtime, args)
      check_args args, [BasicNumeric]
      column = args.first.eval(runtime).to_i
      Tab.new(column)
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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