Sha256: 7a1bdb5320d47c918334d3ad04cb067e8c9c4f64a0ea7e2f8236dad6e0c1f665

Contents?: true

Size: 503 Bytes

Versions: 28

Compression:

Stored size: 503 Bytes

Contents

class IntrospectiveManagerStreamLexer < RubyAMI::Lexer
  attr_reader :received_messages, :syntax_errors, :ami_errors

  def initialize(*args)
    super
    @received_messages = []
    @syntax_errors     = []
    @ami_errors        = []
  end

  def message_received(message = @current_message)
    @received_messages << message
  end

  def error_received(error_message)
    @ami_errors << error_message
  end

  def syntax_error_encountered(ignored_chunk)
    @syntax_errors << ignored_chunk
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ruby_ami-3.0.0 features/support/introspective_lexer.rb
ruby_ami-2.4.0 features/support/introspective_lexer.rb
ruby_ami-2.3.0 features/support/introspective_lexer.rb
ruby_ami-2.2.1 features/support/introspective_lexer.rb
ruby_ami-2.2.0 features/support/introspective_lexer.rb
ruby_ami-2.1.0 features/support/introspective_lexer.rb
ruby_ami-1.3.4 features/support/introspective_lexer.rb
ruby_ami-2.0.0 features/support/introspective_lexer.rb
ruby_ami-1.3.3 features/support/introspective_lexer.rb
ruby_ami-1.3.2 features/support/introspective_lexer.rb
ruby_ami-1.3.1 features/support/introspective_lexer.rb
ruby_ami-1.3.0 features/support/introspective_lexer.rb
ruby_ami-1.2.6 features/support/introspective_lexer.rb
ruby_ami-1.2.5 features/support/introspective_lexer.rb
ruby_ami-1.2.4 features/support/introspective_lexer.rb
ruby_ami-1.2.3 features/support/introspective_lexer.rb
ruby_ami-1.2.2 features/support/introspective_lexer.rb
ruby_ami-1.2.1 features/support/introspective_lexer.rb
ruby_ami-1.2.0 features/support/introspective_lexer.rb
ruby_ami-1.1.2 features/support/introspective_lexer.rb