Class: Mkfiles::Config
- Inherits:
-
Object
- Object
- Mkfiles::Config
- Defined in:
- lib/mkfiles/config.rb
Instance Attribute Summary collapse
-
#start_place ⇒ Object
readonly
Returns the value of attribute start_place.
-
#sub_paths ⇒ Object
readonly
Returns the value of attribute sub_paths.
Instance Method Summary collapse
-
#initialize(yaml_hash) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(yaml_hash) ⇒ Config
Returns a new instance of Config.
7 8 9 10 |
# File 'lib/mkfiles/config.rb', line 7 def initialize(yaml_hash) @start_place = yaml_hash["start_place"] @sub_paths = yaml_hash["sub_paths"] end |
Instance Attribute Details
#start_place ⇒ Object (readonly)
Returns the value of attribute start_place.
5 6 7 |
# File 'lib/mkfiles/config.rb', line 5 def start_place @start_place end |
#sub_paths ⇒ Object (readonly)
Returns the value of attribute sub_paths.
5 6 7 |
# File 'lib/mkfiles/config.rb', line 5 def sub_paths @sub_paths end |