Method: Beaver#initialize

Defined in:
lib/beaver.rb

#initializeBeaver

Initialize functon should not be used by build scripts



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/beaver.rb', line 11

def initialize
  # Contains all commands
  # { CommandName: Symbol => command: Command }
  @commands = Hash.new
  # Name of the main command
  @mainCommand = nil
  @cache_loc = "./.beaver"
  unless Dir.exist? @cache_loc
    Dir.mkdir @cache_loc
  end
  @term_256_color = `echo $TERM`.include? "256color"
  @opts = []
end