Sha256: ca0b487a4043c2c08222b0ae580082611779fa2f73df50643f768164b06fd6a0
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
require 'ircp' require 'rlyeh/logger' module Rlyeh module DeepOnes class Parser include Rlyeh::Logger def initialize(app) @app = app end def call(env) begin message = Ircp.parse env.data env.message = message env.event = message.command.to_s.downcase @app.call env if @app rescue Ircp::ParseError => e debug "#{e.class}: #{e.to_s}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rlyeh-0.1.1 | lib/rlyeh/deep_ones/parser.rb |