Class: Indoctrinatr::Tools::TemplateDocumentationSourceFile
- Inherits:
-
Object
- Object
- Indoctrinatr::Tools::TemplateDocumentationSourceFile
- Defined in:
- lib/indoctrinatr/tools/template_documentation_source_file.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(filename) ⇒ TemplateDocumentationSourceFile
constructor
A new instance of TemplateDocumentationSourceFile.
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
#content ⇒ Object (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 |
#language ⇒ Object (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 |
#name ⇒ Object (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 |