Class: Generic
- Inherits:
-
Object
- Object
- Generic
- Defined in:
- lib/kody/engine/generic/generic.rb
Overview
TODO
Instance Attribute Summary collapse
-
#model ⇒ Object
Returns the value of attribute model.
-
#output ⇒ Object
Returns the value of attribute output.
-
#properties ⇒ Object
Returns the value of attribute properties.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(model, properties) ⇒ Generic
constructor
A new instance of Generic.
- #name ⇒ Object
- #version ⇒ Object
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
#model ⇒ Object
Returns the value of attribute model.
15 16 17 |
# File 'lib/kody/engine/generic/generic.rb', line 15 def model @model end |
#output ⇒ Object
Returns the value of attribute output.
14 15 16 |
# File 'lib/kody/engine/generic/generic.rb', line 14 def output @output end |
#properties ⇒ Object
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
#generate ⇒ Object
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 |
#name ⇒ Object
39 40 41 |
# File 'lib/kody/engine/generic/generic.rb', line 39 def name return "Generic" end |
#version ⇒ Object
43 44 45 |
# File 'lib/kody/engine/generic/generic.rb', line 43 def version return "1.0" end |