Module: Boson::ConsoleOptions

Included in:
BinRunner
Defined in:
lib/boson/console.rb

Overview

:console

This drops Boson into irb after having loaded default commands and any explict libraries with :load option. This is a good way to start irb with only certain libraries loaded.

Instance Method Summary collapse

Instance Method Details

#early_option?(args) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
26
27
28
29
30
# File 'lib/boson/console.rb', line 23

def early_option?(args)
  if @options[:console]
    ConsoleRunner.bin_start(@options[:console], @options[:load])
    true
  else
    super
  end
end