Class: Defgen::Defaultfile

Inherits:
Object
  • Object
show all
Defined in:
lib/defgen/defaultfile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_propertiesObject (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_settingsObject

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_ifaceObject



13
14
15
# File 'lib/defgen/defaultfile.rb', line 13

def to_iface
  render TemplateGenerator.interface_template
end

#to_impObject



17
18
19
# File 'lib/defgen/defaultfile.rb', line 17

def to_imp
  render TemplateGenerator.implementation_template
end