Class: Nibbler::Parser::RunningStatus

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/nibbler/parser.rb

Instance Method Summary collapse

Instance Method Details

#cancelObject



146
147
148
# File 'lib/nibbler/parser.rb', line 146

def cancel
  @state = nil
end

#possible?Boolean

Is there an active cached running status?

Returns:

  • (Boolean)


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, message_builder, status_nibble_2)
  @state = {
    :message_builder => message_builder,
    :offset => offset,
    :status_nibble_2 => status_nibble_2
  }
end