Class: Nibbler::Parser::RunningStatus
- Inherits:
-
Object
- Object
- Nibbler::Parser::RunningStatus
- Extended by:
- Forwardable
- Defined in:
- lib/nibbler/parser.rb
Instance Method Summary collapse
- #cancel ⇒ Object
-
#possible? ⇒ Boolean
Is there an active cached running status?.
- #set(offset, message_builder, status_nibble_2) ⇒ Object
Instance Method Details
#cancel ⇒ Object
146 147 148 |
# File 'lib/nibbler/parser.rb', line 146 def cancel @state = nil end |
#possible? ⇒ Boolean
Is there an active cached running status?
152 153 154 |
# File 'lib/nibbler/parser.rb', line 152 def possible? !@state.nil? end |
#set(offset, message_builder, status_nibble_2) ⇒ Object
156 157 158 159 160 161 162 |
# File 'lib/nibbler/parser.rb', line 156 def set(offset, , status_nibble_2) @state = { :message_builder => , :offset => offset, :status_nibble_2 => status_nibble_2 } end |