Class: LetterGenerator::MetadataFile

Inherits:
Object
  • Object
show all
Defined in:
lib/letter_generator/metadata_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path = Dir.glob(File.expand_path('*.yaml')).first) ⇒ MetadataFile

Returns a new instance of MetadataFile.



5
6
7
# File 'lib/letter_generator/metadata_file.rb', line 5

def initialize(path = Dir.glob(File.expand_path('*.yaml')).first)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/letter_generator/metadata_file.rb', line 3

def path
  @path
end