Class: FakePipe::AnyBlock

Inherits:
TextBlock show all
Defined in:
lib/fake_pipe/any_block.rb

Overview

Catch all text block. Generic base state while a more interesting text block is not present.

Instance Attribute Summary

Attributes inherited from TextBlock

#delegate, #start_match, #table

Instance Method Summary collapse

Methods inherited from TextBlock

#initialize, #on_start_text

Constructor Details

This class inherits a constructor from FakePipe::TextBlock

Instance Method Details

#end_text?(line) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/fake_pipe/any_block.rb', line 14

def end_text?(line)
  true
end

#match_start_text(line) ⇒ Object



6
7
8
# File 'lib/fake_pipe/any_block.rb', line 6

def match_start_text(line)
  true
end

#parse(line) ⇒ Object



18
19
20
# File 'lib/fake_pipe/any_block.rb', line 18

def parse(line)
  line
end

#start_text?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/fake_pipe/any_block.rb', line 10

def start_text?
  true
end