matthew-method_lister 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +60 -61
- metadata +1 -1
data/README.markdown
CHANGED
|
@@ -23,9 +23,8 @@ Get the gem:
|
|
|
23
23
|
|
|
24
24
|
# Install the gem
|
|
25
25
|
sudo gem install matthew-method_lister
|
|
26
|
-
|
|
27
|
-
Build the gem:
|
|
28
26
|
|
|
27
|
+
# Otherwise, build the gem and install it
|
|
29
28
|
rake gem
|
|
30
29
|
sudo gem install pkg/*.gem
|
|
31
30
|
|
|
@@ -46,76 +45,76 @@ vary, depending on what you have loaded):
|
|
|
46
45
|
|
|
47
46
|
>> [].ls
|
|
48
47
|
========== Module Kernel ==========
|
|
49
|
-
PUBLIC:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
PUBLIC: == === =~ __id__ __send__ class clone display dup eql? equal?
|
|
49
|
+
extend freeze frozen? gem grep hash id inspect instance_eval instance_of?
|
|
50
|
+
instance_variable_defined? instance_variable_get instance_variable_set
|
|
51
|
+
instance_variables is_a? kind_of? ls method methods mgrep mls mwhich nil?
|
|
52
|
+
object_id pretty_inspect private_methods protected_methods public_methods
|
|
53
|
+
require respond_to? send singleton_methods taint tainted? to_a to_s type
|
|
54
|
+
untaint which
|
|
56
55
|
|
|
57
56
|
========== Module PP::ObjectMixin ==========
|
|
58
|
-
PUBLIC:
|
|
59
|
-
|
|
57
|
+
PUBLIC: pretty_print pretty_print_cycle pretty_print_inspect
|
|
58
|
+
pretty_print_instance_variables
|
|
60
59
|
|
|
61
60
|
========== Module Enumerable ==========
|
|
62
|
-
PUBLIC:
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
PUBLIC: all? any? collect detect each_with_index entries find find_all
|
|
62
|
+
grep include? inject map max member? min partition reject select sort
|
|
63
|
+
sort_by to_a zip
|
|
65
64
|
|
|
66
65
|
========== Class Array ==========
|
|
67
|
-
PUBLIC:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
insert
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
PUBLIC: & * + - << <=> == [] []= assoc at clear collect collect! compact
|
|
67
|
+
compact! concat delete delete_at delete_if each each_index empty? eql?
|
|
68
|
+
fetch fill first flatten flatten! frozen? hash include? index indexes
|
|
69
|
+
indices insert inspect join last length map map! nitems pack pop
|
|
70
|
+
pretty_print pretty_print_cycle push rassoc reject reject! replace reverse
|
|
71
|
+
reverse! reverse_each rindex select shift size slice slice! sort sort!
|
|
72
|
+
to_a to_ary to_s transpose uniq uniq! unshift values_at zip |
|
|
74
73
|
|
|
75
74
|
You can show protected and private methods too by passing in "true":
|
|
76
75
|
|
|
77
76
|
>> [].ls true
|
|
78
77
|
========== Module Kernel ==========
|
|
79
|
-
PUBLIC:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
PRIVATE:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
78
|
+
PUBLIC: == === =~ __id__ __send__ class clone display dup eql? equal?
|
|
79
|
+
extend freeze frozen? gem grep hash id inspect instance_eval instance_of?
|
|
80
|
+
instance_variable_defined? instance_variable_get instance_variable_set
|
|
81
|
+
instance_variables is_a? kind_of? ls method methods mgrep mls mwhich nil?
|
|
82
|
+
object_id pretty_inspect private_methods protected_methods public_methods
|
|
83
|
+
require respond_to? send singleton_methods taint tainted? to_a to_s type
|
|
84
|
+
untaint which
|
|
85
|
+
|
|
86
|
+
PRIVATE: Array Float Integer String URI ` abort at_exit autoload autoload?
|
|
87
|
+
binding block_given? callcc caller catch chomp chomp! chop chop! eval exec
|
|
88
|
+
exit exit! fail fork format gem_original_require getc gets
|
|
89
|
+
global_variables gsub gsub! initialize_copy iterator? lambda load
|
|
90
|
+
local_variables loop method_missing open p pp print printf proc putc puts
|
|
91
|
+
raise rand readline readlines remove_instance_variable scan select
|
|
92
|
+
set_trace_func singleton_method_added singleton_method_removed
|
|
93
|
+
singleton_method_undefined sleep split sprintf srand sub sub! syscall
|
|
94
|
+
system test throw trace_var trap untrace_var warn
|
|
96
95
|
|
|
97
96
|
========== Module PP::ObjectMixin ==========
|
|
98
|
-
PUBLIC:
|
|
99
|
-
|
|
97
|
+
PUBLIC: pretty_print pretty_print_cycle pretty_print_inspect
|
|
98
|
+
pretty_print_instance_variables
|
|
100
99
|
|
|
101
100
|
========== Class Object ==========
|
|
102
|
-
PRIVATE: initialize
|
|
101
|
+
PRIVATE: initialize irb_binding timeout
|
|
103
102
|
|
|
104
103
|
========== Module Enumerable ==========
|
|
105
|
-
PUBLIC:
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
PUBLIC: all? any? collect detect each_with_index entries find find_all
|
|
105
|
+
grep include? inject map max member? min partition reject select sort
|
|
106
|
+
sort_by to_a zip
|
|
108
107
|
|
|
109
108
|
========== Class Array ==========
|
|
110
|
-
PUBLIC:
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
insert
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
PRIVATE: initialize_copy
|
|
109
|
+
PUBLIC: & * + - << <=> == [] []= assoc at clear collect collect! compact
|
|
110
|
+
compact! concat delete delete_at delete_if each each_index empty? eql?
|
|
111
|
+
fetch fill first flatten flatten! frozen? hash include? index indexes
|
|
112
|
+
indices insert inspect join last length map map! nitems pack pop
|
|
113
|
+
pretty_print pretty_print_cycle push rassoc reject reject! replace reverse
|
|
114
|
+
reverse! reverse_each rindex select shift size slice slice! sort sort!
|
|
115
|
+
to_a to_ary to_s transpose uniq uniq! unshift values_at zip |
|
|
116
|
+
|
|
117
|
+
PRIVATE: initialize initialize_copy
|
|
119
118
|
|
|
120
119
|
`grep` or `mgrep`
|
|
121
120
|
-----------------
|
|
@@ -126,29 +125,29 @@ objects `grep` is already taken:
|
|
|
126
125
|
|
|
127
126
|
>> [].mgrep /f/
|
|
128
127
|
========== Module Kernel ==========
|
|
129
|
-
PUBLIC:
|
|
128
|
+
PUBLIC: freeze frozen? instance_of? instance_variable_defined? kind_of?
|
|
130
129
|
|
|
131
130
|
========== Module Enumerable ==========
|
|
132
|
-
PUBLIC: find_all
|
|
131
|
+
PUBLIC: find find_all
|
|
133
132
|
|
|
134
133
|
========== Class Array ==========
|
|
135
|
-
PUBLIC: delete_if fetch flatten!
|
|
134
|
+
PUBLIC: delete_if fetch fill first flatten flatten! frozen? shift unshift
|
|
136
135
|
|
|
137
136
|
Similar to `ls` you can pass in an extra argument of "true" to see protected
|
|
138
137
|
and private methods:
|
|
139
138
|
|
|
140
139
|
>> [].mgrep /f/, true
|
|
141
140
|
========== Module Kernel ==========
|
|
142
|
-
PUBLIC:
|
|
141
|
+
PUBLIC: freeze frozen? instance_of? instance_variable_defined? kind_of?
|
|
143
142
|
|
|
144
|
-
PRIVATE: method_missing set_trace_func
|
|
145
|
-
sprintf
|
|
143
|
+
PRIVATE: fail fork format method_missing printf set_trace_func
|
|
144
|
+
singleton_method_undefined sprintf
|
|
146
145
|
|
|
147
146
|
========== Module Enumerable ==========
|
|
148
|
-
PUBLIC: find_all
|
|
147
|
+
PUBLIC: find find_all
|
|
149
148
|
|
|
150
149
|
========== Class Array ==========
|
|
151
|
-
PUBLIC: delete_if fetch flatten!
|
|
150
|
+
PUBLIC: delete_if fetch fill first flatten flatten! frozen? shift unshift
|
|
152
151
|
|
|
153
152
|
Note that `method_missing` is always considered a match, since it could always
|
|
154
153
|
potentially execute.
|