Sha256: 4ff5107648d9d040c102f98b0ceb5415470450e729f5486b2fce5e43b2912699

Contents?: true

Size: 216 Bytes

Versions: 3

Compression:

Stored size: 216 Bytes

Contents

require_relative 'statement'

module Basic101

  class StopStatement < Statement

    def execute(runtime)
      runtime.output.puts "Break in line #{@line.line_number}"
      runtime.end_program
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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