Class: Cure::Configuration::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_file_location, template, output_dir) ⇒ Config

Returns a new instance of Config.

Parameters:

  • source_file_location (String)
  • template (Hash)
  • output_dir (String)


33
34
35
36
37
# File 'lib/cure/config.rb', line 33

def initialize(source_file_location, template, output_dir)
  @source_file_location = source_file_location
  @template = template
  @output_dir = output_dir
end

Instance Attribute Details

#output_dirObject

Returns the value of attribute output_dir.



28
29
30
# File 'lib/cure/config.rb', line 28

def output_dir
  @output_dir
end

#source_file_locationObject

Returns the value of attribute source_file_location.



28
29
30
# File 'lib/cure/config.rb', line 28

def source_file_location
  @source_file_location
end

#templateObject

Returns the value of attribute template.



28
29
30
# File 'lib/cure/config.rb', line 28

def template
  @template
end

Instance Method Details

#placeholdersObject



39
40
41
# File 'lib/cure/config.rb', line 39

def placeholders
  @template["placeholders"] || []
end