Sha256: 99a52ed15c64638e0406f08b3d1dab86d5ebb143a0cbc839b40c07dd83834100
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
require 'ircp' require 'rlyeh/numeric_reply' require 'rlyeh/utils' module Rlyeh module Sender def send_message(command, *args) options = Rlyeh::Utils.extract_options! args send_data Ircp::Message.new(*args, options.merge(:command => command)) end def send_numeric_reply(type, target, *args) options = Rlyeh::Utils.extract_options! args numeric = Rlyeh::NumericReply.to_value type send_data Ircp::Message.new(target, *args, options.merge(:command => numeric)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rlyeh-0.1.1 | lib/rlyeh/sender.rb |