Slide 91
Slide 91 text
~/debugging $ ruby -Ilib -rminesweeper -e \
> "p MineSweeper::Board.private_instance_methods"
[:initialize, :build_cells, :build_status_label, :index_fo
r, :neighbors_for, :DelegateClass, :TkPack, :TkGrid, :TkPl
ace, :sprintf, :format, :Integer, :Float, :String, :Array,
:Hash, :fail, :iterator?, :__method__, :catch, :__dir__, :
loop, :global_variables, :throw, :block_given?, :raise, :_
_callee__, :eval, :Rational, :trace_var, :untrace_var, :Co
mplex, :at_exit, :set_trace_func, :gem, :select, :caller,
:caller_locations, :`, :test, :fork, :exit, :sleep, :respo
nd_to_missing?, :gem_original_require, :load, :exec, :exit
!, :system, :spawn, :abort, :syscall, :open, :printf, :pri
nt, :putc, :puts, :gets, :readlines, :readline, ...]
~/debugging $
Intro • Interface • State • Flow • Tradeoffs