Class: Model

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model_file_name) ⇒ Model

Returns a new instance of Model.



10
11
12
13
14
# File 'lib/kody/model.rb', line 10

def initialize(model_file_name)
	App.logger.info "Loading model #{model_file_name}..."
	@model = XmiModel.new model_file_name
	App.logger.info "Model #{model_file_name} loaded."
end

Instance Attribute Details

#docObject (readonly)

Returns the value of attribute doc.



8
9
10
# File 'lib/kody/model.rb', line 8

def doc
  @doc
end

Instance Method Details

#classesObject



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

def classes
	@model.classes
end