Top Level Namespace

Defined Under Namespace

Modules: Mddb Classes: GsdSphere, New, Point, Vector

Instance Method Summary collapse

Instance Method Details

#start_consoleObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/mddb/commands/console.rb', line 3

def start_console
  require 'irb'
  require 'irb/completion'
  require 'require_all'
  require 'hirb'
  Hirb.enable
  # Require all our models
  require_all 'models' unless Dir.glob('models/**/*.rb').size == 0
  ARGV.clear
  puts "Wecome to Mddb!"
  IRB.start
end