Sha256: 39fbc5eec0d0708fc8daf43ccb633b04aff1ea81b4e264c79f04ce4608fca907
Contents?: true
Size: 330 Bytes
Versions: 3
Compression:
Stored size: 330 Bytes
Contents
require_relative 'statement' module Basic101 class ElseStatement < Statement attr_writer :end_statement def initialize end def execute(runtime) @end_statement.goto_following_statement(runtime) end def goto_following_statement(runtime) runtime.goto_index(@index + 1) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic101-0.4.0 | lib/basic101/else_statement.rb |
basic101-0.2.0 | lib/basic101/else_statement.rb |
basic101-0.1.0 | lib/basic101/else_statement.rb |