Class: Mkfiles::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/mkfiles/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_placeObject (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_pathsObject (readonly)

Returns the value of attribute sub_paths.



5
6
7
# File 'lib/mkfiles/config.rb', line 5

def sub_paths
  @sub_paths
end