Class: Array
Instance Method Summary collapse
- #children_for_tk_inspect ⇒ Object
- #number_of_children_for_tk_inspect ⇒ Object
- #value_for_tk_inspect ⇒ Object
Instance Method Details
#children_for_tk_inspect ⇒ Object
34 35 36 |
# File 'lib/base_inspectors.rb', line 34 def children_for_tk_inspect map.with_index { |obj, idx| [ idx.to_s, obj ] }.to_h.merge(super) end |
#number_of_children_for_tk_inspect ⇒ Object
30 31 32 |
# File 'lib/base_inspectors.rb', line 30 def number_of_children_for_tk_inspect size + super end |
#value_for_tk_inspect ⇒ Object
26 27 28 |
# File 'lib/base_inspectors.rb', line 26 def value_for_tk_inspect "#{size} elements" end |