Class: PnoteClient::ConsoleDisplay

Inherits:
Object
  • Object
show all
Defined in:
lib/pnote_client/display/console_display.rb

Instance Method Summary collapse

Constructor Details

#initializeConsoleDisplay

implement HmlToPnoteConverter Delegate implement PnoteClient Delegate



6
7
# File 'lib/pnote_client/display/console_display.rb', line 6

def initialize
end

Instance Method Details

#binary_converted(count:, current:) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/pnote_client/display/console_display.rb', line 18

def binary_converted(count:, current:)
  print_progress(count, current, "Converting binaries")

  # Print newline when task is done
  if count == (current + 1)
    printf("\n")
  end
end

#paragraph_converted(count:, current:) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/pnote_client/display/console_display.rb', line 9

def paragraph_converted(count:, current:)
  print_progress(count, current, "Converting paragraphs")

  # Print newline when task is done
  if count == (current + 1)
    printf("\n")
  end
end