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.
23 24 25 |
# File 'lib/fluent/test/output_test.rb', line 23 def initialize @called = 0 end |
Instance Attribute Details
#called ⇒ Object (readonly)
Returns the value of attribute called.
31 32 33 |
# File 'lib/fluent/test/output_test.rb', line 31 def called @called end |
Instance Method Details
#next ⇒ Object
27 28 29 |
# File 'lib/fluent/test/output_test.rb', line 27 def next @called += 1 end |