Sha256: fa6c32931a9b691eda776597fcc4daffd46124e355a511b3e82c600bd2eed4cc
Contents?: true
Size: 267 Bytes
Versions: 3
Compression:
Stored size: 267 Bytes
Contents
# frozen_string_literal: true 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-1.0.2 | lib/basic101/tab_function.rb |
basic101-1.0.1 | lib/basic101/tab_function.rb |
basic101-1.0.0 | lib/basic101/tab_function.rb |