Class: ConfCtl::NixCollectGarbage::Progress

Inherits:
Object
  • Object
show all
Defined in:
lib/confctl/nix_collect_garbage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathString? (readonly)

Returns:

  • (String, nil)


16
17
18
# File 'lib/confctl/nix_collect_garbage.rb', line 16

def path
  @path
end

Instance Method Details

#path?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/confctl/nix_collect_garbage.rb', line 11

def path?
  !@path.nil?
end

#to_sObject



18
19
20
# File 'lib/confctl/nix_collect_garbage.rb', line 18

def to_s
  @line
end