lib/ury_rapid/baps/responses/parser.rb
# Reads a config setting
#
# Config settings are one of the uglier areas of BAPS's meta-protocol,
# as the format of the config value depends on the preceding config
# type. As such, it's much easier to treat them specially in the
# parser.
#
# This command only parses the setting type itself; it pushes the
# correct type for the value into @expected as the next argument.
#
# @api private
#
# @param name [Symbol] The name of the argument to which the config
#   type is bound.
#
# @return [void]
Reads a config setting
Config settings are one of the uglier areas of BAPS's meta-protocol,
as the format of the config value depends on the preceding config
type. As such, it's much easier to treat them specially in the
parser.

This command only parses the setting type itself; it pushes the
correct type for the value into @expected as the next argument.
Reads a config setting Config settings are one of the uglier areas of BAPS ' s meta - protocol as the format of the config value depends on the preceding config type . As such it ' s much easier to treat them specially in the parser . This command only parses the setting type itself ; it pushes the correct type for the value into @expected as the next argument .
def config_setting(name)
          @reader.uint32 do |config_type|
            @response[name] = config_type
            @reader.send(CONFIG_TYPE_MAP[config_type]) do |value|
              @response.value = value
              word
            end
          end
        end
def config_setting ( name ) @reader . uint32 do | config_type | @response [ name ] = config_type @reader . send ( CONFIG_TYPE_MAP [ config_type ] ) do | value | @response . value = value word end end end
Reads a config setting
Config settings are one of the uglier areas of BAPS's meta-protocol,
as the format of the config value depends on the preceding config
type.
Reads a config setting Config settings are one of the uglier areas of BAPS ' s meta - protocol as the format of the config value depends on the preceding config type .
None
void
name
The name of the argument to which the config type is bound.
The name of the argument to which the config type is bound .
api
None