Class: Vial::Config
- Inherits:
-
Object
- Object
- Vial::Config
- Defined in:
- lib/vial/config.rb
Instance Attribute Summary collapse
-
#id_base ⇒ Object
Returns the value of attribute id_base.
-
#id_range ⇒ Object
Returns the value of attribute id_range.
- #output_path ⇒ Object
-
#seed ⇒ Object
Returns the value of attribute seed.
-
#source_paths ⇒ Object
Returns the value of attribute source_paths.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 11 12 13 14 |
# File 'lib/vial/config.rb', line 8 def initialize @source_paths = default_source_paths @output_path = nil @seed = 1 @id_base = 0 @id_range = 90_000 end |
Instance Attribute Details
#id_base ⇒ Object
Returns the value of attribute id_base.
5 6 7 |
# File 'lib/vial/config.rb', line 5 def id_base @id_base end |
#id_range ⇒ Object
Returns the value of attribute id_range.
5 6 7 |
# File 'lib/vial/config.rb', line 5 def id_range @id_range end |
#output_path ⇒ Object
16 17 18 |
# File 'lib/vial/config.rb', line 16 def output_path @output_path || default_output_path end |
#seed ⇒ Object
Returns the value of attribute seed.
5 6 7 |
# File 'lib/vial/config.rb', line 5 def seed @seed end |
#source_paths ⇒ Object
Returns the value of attribute source_paths.
5 6 7 |
# File 'lib/vial/config.rb', line 5 def source_paths @source_paths end |