Module: Rlyeh::Sender
- Included in:
- Connection
- Defined in:
- lib/rlyeh/sender.rb
Instance Method Summary collapse
Instance Method Details
#send_message(command, *args) ⇒ Object
7 8 9 10 |
# File 'lib/rlyeh/sender.rb', line 7 def (command, *args) = Rlyeh::Utils. args send_data Ircp::Message.new(*args, .merge(:command => command)) end |
#send_numeric_reply(type, target, *args) ⇒ Object
12 13 14 15 16 |
# File 'lib/rlyeh/sender.rb', line 12 def send_numeric_reply(type, target, *args) = Rlyeh::Utils. args numeric = Rlyeh::NumericReply.to_value type send_data Ircp::Message.new(target, *args, .merge(:command => numeric)) end |