Class: Diogenes::Configuration
- Inherits:
-
Object
- Object
- Diogenes::Configuration
- Defined in:
- lib/diogenes/configuration.rb
Constant Summary collapse
- DEFAULT_ARTIFACTS_DIR =
: String
"docs/decisions"
Instance Method Summary collapse
-
#artifacts_dir(value = nil) ⇒ Object
: (?String?) -> String.
-
#description(value = nil) ⇒ Object
: (?String?) -> String?.
-
#initialize ⇒ Configuration
constructor
: () -> void.
-
#name(value = nil) ⇒ Object
: (?String?) -> String?.
-
#targets(*values) ⇒ Object
: (*Symbol) -> Array.
Constructor Details
#initialize ⇒ Configuration
: () -> void
9 10 11 12 |
# File 'lib/diogenes/configuration.rb', line 9 def initialize @targets = [] #: Array[Symbol] @artifacts_dir = DEFAULT_ARTIFACTS_DIR #: String end |
Instance Method Details
#artifacts_dir(value = nil) ⇒ Object
: (?String?) -> String
33 34 35 36 |
# File 'lib/diogenes/configuration.rb', line 33 def artifacts_dir(value = nil) @artifacts_dir = value unless value.nil? @artifacts_dir end |
#description(value = nil) ⇒ Object
: (?String?) -> String?
21 22 23 24 |
# File 'lib/diogenes/configuration.rb', line 21 def description(value = nil) @description = value unless value.nil? @description end |
#name(value = nil) ⇒ Object
: (?String?) -> String?
15 16 17 18 |
# File 'lib/diogenes/configuration.rb', line 15 def name(value = nil) @name = value unless value.nil? @name end |
#targets(*values) ⇒ Object
: (*Symbol) -> Array
27 28 29 30 |
# File 'lib/diogenes/configuration.rb', line 27 def targets(*values) @targets = values.flatten unless values.empty? @targets end |