lib/lis/messages.rb
def type_id(char = nil)
      return @@messages_by_type.find {|c,klass| klass == self }.first unless char
      @@messages_by_type ||= {}
      @@messages_by_type[char] = self
    end
# registers a message with a specific type prefix to make {Message::Base.from_string} work
#
registers a message with a specific type prefix to make {Message::Base.from_string} work
registers a message with a specific type prefix to make { Message :: Base . from_string } work
def type_id(char = nil)
      return @@messages_by_type.find {|c,klass| klass == self }.first unless char
      @@messages_by_type ||= {}
      @@messages_by_type[char] = self
    end
def type_id ( char = nil ) return @@messages_by_type . find { | c , klass | klass == self } . first unless char @@messages_by_type ||= { } @@messages_by_type [ char ] = self end
registers a message with a specific type prefix to make {Message::Base.from_string} work
registers a message with a specific type prefix to make { Message :: Base . from_string } work
char