Class: I15R::Config
- Inherits:
-
Object
- Object
- I15R::Config
- Defined in:
- lib/i15r.rb
Instance Method Summary collapse
- #add_default ⇒ Object
- #dry_run? ⇒ Boolean
-
#initialize(config) ⇒ Config
constructor
A new instance of Config.
- #prefix ⇒ Object
Constructor Details
#initialize(config) ⇒ Config
Returns a new instance of Config.
7 8 9 |
# File 'lib/i15r.rb', line 7 def initialize(config) @options = config end |
Instance Method Details
#add_default ⇒ Object
19 20 21 |
# File 'lib/i15r.rb', line 19 def add_default @options.fetch(:add_default, true) end |
#dry_run? ⇒ Boolean
15 16 17 |
# File 'lib/i15r.rb', line 15 def dry_run? @options.fetch(:dry_run, false) end |
#prefix ⇒ Object
11 12 13 |
# File 'lib/i15r.rb', line 11 def prefix @options.fetch(:prefix, nil) end |