Class: RegApi2::Console

Inherits:
Object
  • Object
show all
Defined in:
lib/reg_api2/console.rb

Overview

Runs Interactive Ruby Shell

Constant Summary collapse

GEM_ROOT =

Gem root.

File.expand_path("../..", File.dirname(__FILE__)).freeze

Class Method Summary collapse

Class Method Details

.run!Object

Runs irb with our console helpers.



9
10
11
# File 'lib/reg_api2/console.rb', line 9

def self.run!
  Kernel.exec("irb --readline -I #{File.join(GEM_ROOT, 'lib')} -r reg_api2/console_helpers")
end