Class: Dependency::DependencySwapper
- Inherits:
-
Object
- Object
- Dependency::DependencySwapper
- Defined in:
- lib/dependencyswapper.rb
Instance Attribute Summary collapse
-
#dependency_name ⇒ Object
readonly
Returns the value of attribute dependency_name.
Class Method Summary collapse
Instance Method Summary collapse
- #dev ⇒ Object
-
#initialize(options) ⇒ DependencySwapper
constructor
A new instance of DependencySwapper.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ DependencySwapper
Returns a new instance of DependencySwapper.
13 14 15 |
# File 'lib/dependencyswapper.rb', line 13 def initialize() @dependency_name = .fetch(:dependency_name) end |
Instance Attribute Details
#dependency_name ⇒ Object (readonly)
Returns the value of attribute dependency_name.
7 8 9 |
# File 'lib/dependencyswapper.rb', line 7 def dependency_name @dependency_name end |
Class Method Details
.perform(options) ⇒ Object
9 10 11 |
# File 'lib/dependencyswapper.rb', line 9 def self.perform() new().perform end |
Instance Method Details
#dev ⇒ Object
23 24 25 26 27 |
# File 'lib/dependencyswapper.rb', line 23 def dev Dependency::DependencyReplacer.new({ :dependency_name => @dependency_name }).dev end |
#run ⇒ Object
17 18 19 20 21 |
# File 'lib/dependencyswapper.rb', line 17 def run Dependency::DependencyReplacer.new({ :dependency_name => @dependency_name }).run end |