Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/cli_support.rb,
lib/base_inspectors.rb
Instance Method Summary collapse
- #children_for_tk_inspect ⇒ Object
- #id_for_tk_inspect ⇒ Object
- #number_of_children_for_tk_inspect ⇒ Object
- #open_tk_console(b = binding, modal = true) ⇒ Object (also: #otkc)
- #value_for_tk_inspect ⇒ Object
Instance Method Details
#children_for_tk_inspect ⇒ Object
14 15 16 |
# File 'lib/base_inspectors.rb', line 14 def children_for_tk_inspect instance_variables.map { |v| [v, instance_variable_get(v)] }.to_h end |
#id_for_tk_inspect ⇒ Object
2 3 4 |
# File 'lib/base_inspectors.rb', line 2 def id_for_tk_inspect object_id.to_s end |
#number_of_children_for_tk_inspect ⇒ Object
10 11 12 |
# File 'lib/base_inspectors.rb', line 10 def number_of_children_for_tk_inspect instance_variables.size end |
#open_tk_console(b = binding, modal = true) ⇒ Object Also known as: otkc
2 3 4 5 6 7 |
# File 'lib/cli_support.rb', line 2 def open_tk_console(b = binding, modal = true) @@main_console ||= TkInspect::Console::Base.new(modal: modal) @@main_console.eval_binding = b @@main_console.focus modal ? @@main_console.modal_loop : Tk.mainloop end |
#value_for_tk_inspect ⇒ Object
6 7 8 |
# File 'lib/base_inspectors.rb', line 6 def value_for_tk_inspect to_s end |