Sha256: 16cbb4c04314cf80b9965e9cf8a017171e0a90c9ff0c031d8bbfd20c1348fe79

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

require 'ircp/prefix'

module Ircp
  class Message
    attr_accessor :raw, :prefix, :command, :params

    def initialize(*args)
      options = args.last.is_a?(Hash) ? args.pop : {}
      @raw = options[:raw]
      @prefix = options[:prefix].is_a?(Hash) ? Prefix.new(options[:prefix]) : nil
      @command = options[:command]
      @params = args
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ircp-0.0.1 lib/ircp/message.rb