module Knot::Protocol::Type

Public Instance Methods

[](code) click to toggle source
# File lib/knot/protocol.rb, line 10
def [] code
        case code
        when 0, End   then return End
        when 1, Data  then return Data
        when 2, Extra then return Extra
        when 3, Block then return Block
        end
end