Class: Renamer

Inherits:
Object show all
Includes:
Options, RenameFunctions
Defined in:
lib/renamer.rb

Direct Known Subclasses

RenamerMock

Instance Attribute Summary

Attributes included from Options

#options

Instance Method Summary collapse

Methods included from Options

#opt, #opt_if

Instance Method Details

#rename_functionsObject



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, options, &block)
  @result_proc = block
  @options = options
  method(name).call
end