Class: Net::IRC::Prefix

### Home Classes Methods

### In Files

- lib/net/irc.rb

### Parent

String

### Methods

- #extract
- #host
- #nick
- #user

### Files

- README

### Class/Module Index

Quicksearch

- Net
- Net::IRC
- Net::IRC::Client
- Net::IRC::Client::ChannelManager
- Net::IRC::IRCException
- Net::IRC::Message
- Net::IRC::Message::InvalidMessage
- Net::IRC::Message::ModeParser
- Net::IRC::Message::ServerConfig
- Net::IRC::Prefix
- Net::IRC::Server
- Net::IRC::Server::Session
- Object

No matching classes.

# Net::IRC::Prefix

### Public Instance Methods

extract() click to toggle source

Extract Prefix String to [nick, user, host] Array.

    # File lib/net/irc.rb, line 35
    def extract
            _, *ret = *self.match(/\A([^\s!]+)(?:!([^\s@]+)@(\S+))?\z/)
            ret
    end

host() click to toggle source

    # File lib/net/irc.rb, line 30
    def host
            extract[2]
    end

nick() click to toggle source

    # File lib/net/irc.rb, line 22
    def nick
            extract[0]
    end

user() click to toggle source

    # File lib/net/irc.rb, line 26
    def user
            extract[1]
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.