Class: TestLineText2::Basic

Inherits:
Object
  • Object
show all
Includes:
EM::Protocols::LineText2
Defined in:
lib/ext/eventmachine-0.12.10/tests/test_ltp2.rb

Overview

Run each of these tests two ways: passing in the whole test-dataset in one chunk, and passing it in one character at a time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#linesObject (readonly)

Returns the value of attribute lines.



41
42
43
# File 'lib/ext/eventmachine-0.12.10/tests/test_ltp2.rb', line 41

def lines
  @lines
end

Instance Method Details

#receive_line(line) ⇒ Object



42
43
44
# File 'lib/ext/eventmachine-0.12.10/tests/test_ltp2.rb', line 42

def receive_line line
  (@lines ||= []) << line
end