Class: Renamer
- Includes:
- Options, RenameFunctions
- Defined in:
- lib/renamer.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes included from Options
Instance Method Summary collapse
Methods included from Options
Instance Method Details
#rename_functions ⇒ Object
20 21 22 |
# File 'lib/renamer.rb', line 20 def rename_functions methods.grep(/^rename_/) end |
#run(name, options, &block) ⇒ Object
14 15 16 17 18 |
# File 'lib/renamer.rb', line 14 def run(name, , &block) @result_proc = block @options = method(name).call end |