65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# File 'lib/looksee/shortcuts.rb', line 65
def inspect
<<-EOS.gsub(/^ *\|/, '')
|== Looksee Quick Reference
|
| lp(object)
| object.lookup_path
| Print the method lookup path of \`object\'
|
| lpi(klass)
| Print the method lookup path of an instance of \`klass\'.
|
|Add .grep(/pattern/) to restrict the methods listed:
|
| lp(object).grep(/foo/)
|
|== Visibilities
|
|Methods are printed according to their visibility:
|
|#{style_info}
|
|Pass options to specify which visibilities to show:
|
| lp(object, :private => true, :overridden => false)
| lp(object, :private , :overridden => false) # shortcut
EOS
end
|