Class: ProjectsGenerator

Inherits:
TempGenerator show all
Defined in:
lib/cosi-temp/projects-generator.rb

Instance Attribute Summary collapse

Attributes inherited from TempGenerator

#date, #file_array, #filename, #title

Instance Method Summary collapse

Methods inherited from TempGenerator

#to_file

Constructor Details

#initialize(author, title, date) ⇒ ProjectsGenerator

Returns a new instance of ProjectsGenerator.



4
5
6
7
8
9
10
# File 'lib/cosi-temp/projects-generator.rb', line 4

def initialize(author, title, date)
  super(date)
  @title = title
  @author = author
  @filename = gen_filename
  @file_array = create_file
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



2
3
4
# File 'lib/cosi-temp/projects-generator.rb', line 2

def author
  @author
end