Class: Agen::Shell

Inherits:
Object
  • Object
show all
Defined in:
lib/agen/shell.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Shell

Returns a new instance of Shell.



5
6
7
# File 'lib/agen/shell.rb', line 5

def initialize(options)
  @options = options
end

Instance Method Details

#add_optionsObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/agen/shell.rb', line 9

def add_options
  if !@options[:histfile]
    @options = opts_klass.set_histfile
  end

  if @options && !@options[:rcfile]
    @options = opts_klass.set_rcfile
  end

  @options
end