lib/ury_rapid/baps/responses/parser.rb
def command
          # We could use the second return from reader.command to skip an
          # unknown message, but BAPS is quite dodgy at implementing this in
          # places, so we don't do it in practice.
          @reader.command do |code|
            parse_command(CommandWord.new(code))
            word
          end
        end
# Attempt to scrape a command word off the top of the buffer
#
# If successful, the parser then interprets the word and sets up to
# parse the rest of the command phrase.
#
# @api private
#
# @return [void] Whether there was enough data to process a command
Attempt to scrape a command word off the top of the buffer
If successful, the parser then interprets the word and sets up to
parse the rest of the command phrase.
Attempt to scrape a command word off the top of the buffer If successful the parser then interprets the word and sets up to parse the rest of the command phrase .
def command
          @reader.command do |code|
            parse_command(CommandWord.new(code))
            word
          end
        end
def command @reader . command do | code | parse_command ( CommandWord . new ( code ) ) word end end
Attempt to scrape a command word off the top of the buffer
If successful, the parser then interprets the word and sets up to
parse the rest of the command phrase.
Attempt to scrape a command word off the top of the buffer If successful the parser then interprets the word and sets up to parse the rest of the command phrase .
# We could use the second return from reader.command to skip an # unknown message, but BAPS is quite dodgy at implementing this in # places, so we don't do it in practice.
Whether there was enough data to process a command
Whether there was enough data to process a command
void
api
None