Sha256: d45bfd28b1a6f0f7ba8abc1b8e1c79ff6fd5ee4159ac69d9f17b3570f7e2e704
Contents?: true
Size: 333 Bytes
Versions: 3
Compression:
Stored size: 333 Bytes
Contents
require_relative 'statement' module Basic101 class GotoStatement < Statement def initialize(target_line_number) @target_line_number = target_line_number end def execute(runtime) runtime.goto_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/goto_statement.rb |
basic101-0.2.0 | lib/basic101/goto_statement.rb |
basic101-0.1.0 | lib/basic101/goto_statement.rb |