Class: Generic

Inherits:
Object
  • Object
show all
Defined in:
lib/kody/engine/generic/generic.rb

Overview

TODO

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model, properties) ⇒ Generic

Returns a new instance of Generic.



18
19
20
21
22
23
24
25
26
27
# File 'lib/kody/engine/generic/generic.rb', line 18

def initialize(model=nil)
	@output = Dir.pwd
	@hash = Hash.new	

	@model = model
	if !model.nil?
		@properties = Properties.load(@output)
		initialize_builders			
	end
end

Instance Attribute Details

#modelObject

Returns the value of attribute model.



15
16
17
# File 'lib/kody/engine/generic/generic.rb', line 15

def model
  @model
end

#outputObject

Returns the value of attribute output.



14
15
16
# File 'lib/kody/engine/generic/generic.rb', line 14

def output
  @output
end

#propertiesObject

Returns the value of attribute properties.



16
17
18
# File 'lib/kody/engine/generic/generic.rb', line 16

def properties
  @properties
end

Instance Method Details

#generateObject



47
48
49
50
51
# File 'lib/kody/engine/generic/generic.rb', line 47

def generate
	@entities.each do |e|			
		generate_class(e)
	end
end

#nameObject



39
40
41
# File 'lib/kody/engine/generic/generic.rb', line 39

def name
	return "Generic"
end

#versionObject



43
44
45
# File 'lib/kody/engine/generic/generic.rb', line 43

def version
	return "1.0"
end