Class: BundlerSkills::Command::OverrideDryRun
- Inherits:
-
Object
- Object
- BundlerSkills::Command::OverrideDryRun
- Defined in:
- lib/bundler_skills/command.rb
Overview
Wraps a Config to force dry_run? true without mutating the original.
Instance Method Summary collapse
- #dry_run? ⇒ Boolean
-
#initialize(config) ⇒ OverrideDryRun
constructor
A new instance of OverrideDryRun.
- #method_missing(name, *args, &block) ⇒ Object
- #respond_to_missing?(name, include_private = false) ⇒ Boolean
Constructor Details
#initialize(config) ⇒ OverrideDryRun
Returns a new instance of OverrideDryRun.
79 80 81 |
# File 'lib/bundler_skills/command.rb', line 79 def initialize(config) @config = config end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
91 92 93 |
# File 'lib/bundler_skills/command.rb', line 91 def method_missing(name, *args, &block) @config.send(name, *args, &block) end |
Instance Method Details
#dry_run? ⇒ Boolean
83 84 85 |
# File 'lib/bundler_skills/command.rb', line 83 def dry_run? true end |
#respond_to_missing?(name, include_private = false) ⇒ Boolean
87 88 89 |
# File 'lib/bundler_skills/command.rb', line 87 def respond_to_missing?(name, include_private = false) @config.respond_to?(name, include_private) || super end |