Method: Rush::Config#initialize
- Defined in:
- lib/rush/config.rb
#initialize(location = nil) ⇒ Config
By default, reads from the dir ~/.rush, but an optional parameter allows using another location.
9 10 11 12 |
# File 'lib/rush/config.rb', line 9 def initialize(location=nil) @dir = Rush::Dir.new(location || "#{ENV['HOME']}/.rush") @dir.create end |