Method: Jinx::Importer#load_definitions

Defined in:
lib/jinx/importer.rb

#load_definitionsObject (private)



148
149
150
151
152
153
154
155
# File 'lib/jinx/importer.rb', line 148

def load_definitions
  return if @definitions.nil_or_empty?
  # Load the class definitions in the source directories.
  @definitions.each { |dir| load_dir(File.expand_path(dir)) }
  # Print each introspected class's content.
  @introspected.sort { |k1, k2| k1.name <=> k2.name }.each { |klass| logger.info(klass.pp_s) }
  true
end