Class: Fluent::Test::TestOutputChain
- Inherits:
-
Object
- Object
- Fluent::Test::TestOutputChain
- Defined in:
- lib/fluent/test/output_test.rb
Instance Attribute Summary collapse
-
#called ⇒ Object
readonly
Returns the value of attribute called.
Instance Method Summary collapse
-
#initialize ⇒ TestOutputChain
constructor
A new instance of TestOutputChain.
- #next ⇒ Object
Constructor Details
#initialize ⇒ TestOutputChain
Returns a new instance of TestOutputChain.
24 25 26 |
# File 'lib/fluent/test/output_test.rb', line 24 def initialize @called = 0 end |
Instance Attribute Details
#called ⇒ Object (readonly)
Returns the value of attribute called.
32 33 34 |
# File 'lib/fluent/test/output_test.rb', line 32 def called @called end |
Instance Method Details
#next ⇒ Object
28 29 30 |
# File 'lib/fluent/test/output_test.rb', line 28 def next @called += 1 end |