Sha256: f543f028ca5fd8bca37492da1e503f2a5175f7a92abe4dc8f9b88a5d0fbf8c5d
Contents?: true
Size: 785 Bytes
Versions: 1
Compression:
Stored size: 785 Bytes
Contents
# frozen_string_literal: true module RubyJard module Commands # Command used to continue program execution to the next line. # Data attached in the throw: # * command: constant symbol (:next) # * pry: current context pry instance class NextCommand < Pry::ClassCommand group 'RubyJard' description 'Next into the execution of the current line' match 'next' banner <<-BANNER Usage: next Continue program execution to the next line. If the current frame reaches the end, it continue the next line of upper frame. Examples: next BANNER def process throw :control_flow, command: :next, pry: pry_instance end end end end Pry::Commands.add_command(RubyJard::Commands::NextCommand)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_jard-0.1.0 | lib/ruby_jard/commands/next_command.rb |