Class: Relinker::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/relinker/application.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dir, options = {}) ⇒ Application

Returns a new instance of Application.



5
6
7
8
# File 'lib/relinker/application.rb', line 5

def initialize(dir, options = {})
  @dir = dir
  @options = merge_options(options)
end

Instance Attribute Details

#dirObject (readonly)

Returns the value of attribute dir.



3
4
5
# File 'lib/relinker/application.rb', line 3

def dir
  @dir
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/relinker/application.rb', line 3

def options
  @options
end

Instance Method Details

#runObject



10
11
12
13
# File 'lib/relinker/application.rb', line 10

def run
  discoverer.collect(@dir)
  linker.relink_identicals
end