Class: StackCar::DotRc
- Inherits:
-
Object
- Object
- StackCar::DotRc
- Includes:
- Thor::Shell
- Defined in:
- lib/stack_car/dot_rc.rb
Instance Method Summary collapse
- #find_file ⇒ Object
-
#initialize ⇒ DotRc
constructor
A new instance of DotRc.
Constructor Details
#initialize ⇒ DotRc
Returns a new instance of DotRc.
7 8 9 10 11 12 |
# File 'lib/stack_car/dot_rc.rb', line 7 def initialize @file = find_file say_status :load, 'not found', :red && return unless @file say_status :load, @file load(@file) end |