Class: FileWatch::LoopControlResult
- Inherits:
-
Object
- Object
- FileWatch::LoopControlResult
- Defined in:
- lib/filewatch/bootstrap.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#more ⇒ Object
readonly
Returns the value of attribute more.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
- #flag_read_error ⇒ Object
-
#initialize(count, size, more) ⇒ LoopControlResult
constructor
A new instance of LoopControlResult.
- #keep_looping? ⇒ Boolean
Constructor Details
#initialize(count, size, more) ⇒ LoopControlResult
Returns a new instance of LoopControlResult.
49 50 51 52 |
# File 'lib/filewatch/bootstrap.rb', line 49 def initialize(count, size, more) @count, @size, @more = count, size, more @read_error_detected = false end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
47 48 49 |
# File 'lib/filewatch/bootstrap.rb', line 47 def count @count end |
#more ⇒ Object (readonly)
Returns the value of attribute more.
47 48 49 |
# File 'lib/filewatch/bootstrap.rb', line 47 def more @more end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
47 48 49 |
# File 'lib/filewatch/bootstrap.rb', line 47 def size @size end |
Instance Method Details
#flag_read_error ⇒ Object
54 55 56 |
# File 'lib/filewatch/bootstrap.rb', line 54 def flag_read_error @read_error_detected = true end |
#keep_looping? ⇒ Boolean
58 59 60 |
# File 'lib/filewatch/bootstrap.rb', line 58 def keep_looping? !@read_error_detected && @more end |