Class: Relinker::Application
- Inherits:
-
Object
- Object
- Relinker::Application
- Defined in:
- lib/relinker/application.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(dir, options = {}) ⇒ Application
constructor
A new instance of Application.
- #run ⇒ Object
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, = {}) @dir = dir @options = () end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
3 4 5 |
# File 'lib/relinker/application.rb', line 3 def dir @dir end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/relinker/application.rb', line 3 def @options end |
Instance Method Details
#run ⇒ Object
10 11 12 13 |
# File 'lib/relinker/application.rb', line 10 def run discoverer.collect(@dir) linker.relink_identicals end |