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



22
23
24
# File 'lib/renamer.rb', line 22

def rename_functions
  methods.grep(/^rename_/)
end

#run(name, options, &block) ⇒ Object



16
17
18
19
20
# File 'lib/renamer.rb', line 16

def run(name, options, &block)
  @result_proc = block
  @options = options
  method(name).call
end