Class: ConfCtl::NixCollectGarbage::Progress
- Inherits:
-
Object
- Object
- ConfCtl::NixCollectGarbage::Progress
- Defined in:
- lib/confctl/nix_collect_garbage.rb
Instance Attribute Summary collapse
- #path ⇒ String? readonly
Instance Method Summary collapse
-
#initialize(line) ⇒ Progress
constructor
A new instance of Progress.
- #path? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(line) ⇒ Progress
Returns a new instance of Progress.
5 6 7 8 9 |
# File 'lib/confctl/nix_collect_garbage.rb', line 5 def initialize(line) @line = line @path = false parse end |
Instance Attribute Details
#path ⇒ String? (readonly)
16 17 18 |
# File 'lib/confctl/nix_collect_garbage.rb', line 16 def path @path end |
Instance Method Details
#path? ⇒ Boolean
11 12 13 |
# File 'lib/confctl/nix_collect_garbage.rb', line 11 def path? !@path.nil? end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/confctl/nix_collect_garbage.rb', line 18 def to_s @line end |