Class: Indoctrinatr::Tools::TemplateDocumentationSourceFile

Inherits:
Object
  • Object
show all
Defined in:
lib/indoctrinatr/tools/template_documentation_source_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ TemplateDocumentationSourceFile

Returns a new instance of TemplateDocumentationSourceFile.



6
7
8
9
10
# File 'lib/indoctrinatr/tools/template_documentation_source_file.rb', line 6

def initialize(filename)
  @name = filename
  @content = File.read filename
  @language = set_programming_language
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



4
5
6
# File 'lib/indoctrinatr/tools/template_documentation_source_file.rb', line 4

def content
  @content
end

#languageObject (readonly)

Returns the value of attribute language.



4
5
6
# File 'lib/indoctrinatr/tools/template_documentation_source_file.rb', line 4

def language
  @language
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/indoctrinatr/tools/template_documentation_source_file.rb', line 4

def name
  @name
end