Class: Pocolog::CLI::NullReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/pocolog/cli/null_reporter.rb

Overview

A null object compatible with TTY::ProgressBar

Direct Known Subclasses

TestHelpers::RecordingReporter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNullReporter

Returns a new instance of NullReporter



7
8
9
10
# File 'lib/pocolog/cli/null_reporter.rb', line 7

def initialize
    @current = 0
    @base = 0
end

Instance Attribute Details

#baseObject

Returns the value of attribute base



5
6
7
# File 'lib/pocolog/cli/null_reporter.rb', line 5

def base
  @base
end

#currentObject

Returns the value of attribute current



6
7
8
# File 'lib/pocolog/cli/null_reporter.rb', line 6

def current
  @current
end

Instance Method Details

#advance(value) ⇒ Object



15
16
17
# File 'lib/pocolog/cli/null_reporter.rb', line 15

def advance(value)
    @current += value
end

#error(msg) ⇒ Object



24
25
# File 'lib/pocolog/cli/null_reporter.rb', line 24

def error(msg)
end

#finishObject



26
27
# File 'lib/pocolog/cli/null_reporter.rb', line 26

def finish
end

#info(msg) ⇒ Object



20
21
# File 'lib/pocolog/cli/null_reporter.rb', line 20

def info(msg)
end

#log(msg) ⇒ Object



13
14
# File 'lib/pocolog/cli/null_reporter.rb', line 13

def log(msg)
end

#reset_progressbar(format, **options) ⇒ Object



11
12
# File 'lib/pocolog/cli/null_reporter.rb', line 11

def reset_progressbar(format, **options)
end

#title(msg) ⇒ Object



18
19
# File 'lib/pocolog/cli/null_reporter.rb', line 18

def title(msg)
end

#warn(msg) ⇒ Object



22
23
# File 'lib/pocolog/cli/null_reporter.rb', line 22

def warn(msg)
end