Module: ActiveOrient

Defined in:
lib/base_properties.rb,
lib/base.rb,
lib/init.rb,
lib/jdbc.rb,
lib/railtie.rb,
lib/java-api.rb,
lib/rest/rest.rb,
lib/model/model.rb,
lib/active-orient.rb,
lib/support/errors.rb

Overview

require ‘active_support/hash_with_indifferent_access’

Defined Under Namespace

Modules: BaseProperties, Error, Init Classes: API, Base, Model, OrientDB, Railtie

Class Method Summary collapse

Class Method Details

.show_classesObject

displays all allocated classes

usage:

puts ActiveOrient::show_classes


69
70
71
72
73
74
75
76
# File 'lib/active-orient.rb', line 69

def self.show_classes

 '-'* 45+"\n"+
 "Database Class  ->  ActiveOrient ClassName\n"+
 '-'* 45+"\n"+
  ActiveOrient.database_classes.map{|x,y| "#{"%15s"% x} ->  #{y.to_s}" }.join("\n") + "\n"+
 '-'* 45 + "\n"
end