Class: Concept

Inherits:
Base
  • Object
show all
Defined in:
lib/libisi/concept.rb

Class Method Summary collapse

Methods inherited from Base

add_output, change, create_output, global_variable, global_variable=, init, load, output, output_endings, #output_types, type_from_ending

Class Method Details

.create(klass, options = {}) ⇒ Object



22
23
24
25
26
27
28
29
30
31
# File 'lib/libisi/concept.rb', line 22

def self.create(klass, options = {})
  if defined?(ActiveRecord::Base) and 
	klass.superclass == ActiveRecord::Base
    require "libisi/concept/activerecord.rb"
    # this is a activerecord concept
    return ActiverecordConcept.new(klass, options)
  end

  return BaseConcept.new(klass, options)
end