Class: Flagdoc::Stream

Inherits:
Object
  • Object
show all
Defined in:
lib/flagdoc/stream.rb

Overview

Display parsed flags informations

Since:

  • 0.1.0

Constant Summary collapse

BOX_SIZE =

Since:

  • 0.1.0

54
LINE_SIZE =

Since:

  • 0.1.0

12
TAB_SIZE =

Since:

  • 0.1.0

2
COLORS =

Since:

  • 0.1.0

{
  'line'        => '90;48;5;192',
  'description' => '90;48;5;194',
  'file'        => '33;1'
}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(store:) ⇒ Stream

Returns a new instance of Stream.

Since:

  • 1.0.1



17
18
19
# File 'lib/flagdoc/stream.rb', line 17

def initialize(store:)
  @store = store
end

Instance Method Details

#callSTDOUT

Launch the stream of stored informations

Returns:

  • (STDOUT)

    with formatted informations

Since:

  • 1.0.1



26
27
28
29
30
31
# File 'lib/flagdoc/stream.rb', line 26

def call
  @store.files.each do |file|
    file_path(file[:path])
    flags(file[:flags])
  end
end