Sha256: 710898e31f81f5a258f2ffd8aec1afb34b8c91318be32ee2ba48cb505c4fe859
Contents?: true
Size: 335 Bytes
Versions: 3
Compression:
Stored size: 335 Bytes
Contents
require_relative 'statement' module Basic101 class GosubStatement < Statement def initialize(target_line_number) @target_line_number = target_line_number end def execute(runtime) runtime.gosub_line(@target_line_number) end protected def state [@target_line_number] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic101-0.4.0 | lib/basic101/gosub_statement.rb |
basic101-0.2.0 | lib/basic101/gosub_statement.rb |
basic101-0.1.0 | lib/basic101/gosub_statement.rb |