Module: Lumberjack

Defined in:
lib/lumberjack.rb,
lib/lumberjack/client.rb,
lib/lumberjack/server.rb

Defined Under Namespace

Modules: FrameEncoder, JsonEncoder Classes: AckingProtocolV1, AckingProtocolV2, Client, Connection, Parser, Server, Socket

Constant Summary collapse

SEQUENCE_MAX =
(2**32-1).freeze
@@json =
Class.new do
  def self.load(blob)
    JSON.parse(blob)
  end
  def self.dump(v)
    v.to_json
  end
end

Class Method Summary collapse

Class Method Details

.jsonObject


15
16
17
# File 'lib/lumberjack.rb', line 15

def self.json
  @@json
end

.json=(j) ⇒ Object


19
20
21
# File 'lib/lumberjack.rb', line 19

def self.json=(j)
  @@json = j
end