class Agen::BaseOptions
Attributes
options[R]
Public Class Methods
new(options)
click to toggle source
# File lib/agen/base_options.rb, line 5 def initialize(options) @options = options end
Public Instance Methods
set_histfile()
click to toggle source
# File lib/agen/base_options.rb, line 9 def set_histfile # handle not set here if !defined?(self.class::HISTFILE) puts "Please specify shell history file with -h option. See agen --help." return false end options.tap do |opts| opts[:histfile] = self.class::HISTFILE end end
set_rcfile()
click to toggle source
# File lib/agen/base_options.rb, line 21 def set_rcfile if !defined?(self.class::RCFILE) puts "Please specify shell rc file with -r option. See agen --help." return false end options.tap do |opts| opts[:rcfile] = self.class::RCFILE end end