Class: Flagdoc::Stream
- Inherits:
-
Object
- Object
- Flagdoc::Stream
- Defined in:
- lib/flagdoc/stream.rb
Overview
Display parsed flags informations
Constant Summary collapse
- BOX_SIZE =
54- LINE_SIZE =
12- TAB_SIZE =
2- COLORS =
{ 'line' => '90;48;5;192', 'description' => '90;48;5;194', 'file' => '33;1' }.freeze
Instance Method Summary collapse
-
#call ⇒ STDOUT
Launch the stream of stored informations.
-
#initialize(store:) ⇒ Stream
constructor
A new instance of Stream.
Constructor Details
#initialize(store:) ⇒ Stream
Returns a new instance of Stream.
17 18 19 |
# File 'lib/flagdoc/stream.rb', line 17 def initialize(store:) @store = store end |
Instance Method Details
#call ⇒ STDOUT
Launch the stream of stored informations
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 |