Class: Defgen::Defaultfile
- Inherits:
-
Object
- Object
- Defgen::Defaultfile
- Defined in:
- lib/defgen/defaultfile.rb
Instance Attribute Summary collapse
-
#class_properties ⇒ Object
readonly
Returns the value of attribute class_properties.
-
#project_settings ⇒ Object
Returns the value of attribute project_settings.
Instance Method Summary collapse
-
#initialize(class_properties, project_settings) ⇒ Defaultfile
constructor
A new instance of Defaultfile.
- #to_iface ⇒ Object
- #to_imp ⇒ Object
Constructor Details
#initialize(class_properties, project_settings) ⇒ Defaultfile
Returns a new instance of Defaultfile.
8 9 10 11 |
# File 'lib/defgen/defaultfile.rb', line 8 def initialize class_properties, project_settings @class_properties = class_properties self.project_settings = project_settings end |
Instance Attribute Details
#class_properties ⇒ Object (readonly)
Returns the value of attribute class_properties.
6 7 8 |
# File 'lib/defgen/defaultfile.rb', line 6 def class_properties @class_properties end |
#project_settings ⇒ Object
Returns the value of attribute project_settings.
5 6 7 |
# File 'lib/defgen/defaultfile.rb', line 5 def project_settings @project_settings end |
Instance Method Details
#to_iface ⇒ Object
13 14 15 |
# File 'lib/defgen/defaultfile.rb', line 13 def to_iface render TemplateGenerator.interface_template end |
#to_imp ⇒ Object
17 18 19 |
# File 'lib/defgen/defaultfile.rb', line 17 def to_imp render TemplateGenerator.implementation_template end |