177 candidates = String.instance_methods(true) |
177 candidates = String.instance_methods(true) |
178 select_message(receiver, message, candidates) |
178 select_message(receiver, message, candidates) |
179 |
179 |
180 else |
180 else |
181 candidates = eval("methods | private_methods | local_variables | self.class.constants", @binding) |
181 candidates = eval("methods | private_methods | local_variables | self.class.constants", @binding) |
182 |
182 |
183 (candidates|ReservedWords).grep(/^#{Regexp.quote(input)}/) |
183 (candidates|ReservedWords).grep(/^#{Regexp.quote(input)}/) |
184 end |
184 end |
185 end |
185 end |
186 |
186 |
187 Operators = ["%", "&", "*", "**", "+", "-", "/", |
187 Operators = ["%", "&", "*", "**", "+", "-", "/", |