Class: IRC::RFC2812::Prefix

Inherits:
Prefix
  • Object
show all
Defined in:
lib/irc/rfc2812/prefix.rb

Instance Attribute Summary

Attributes inherited from Prefix

#host, #nick, #raw, #user

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Prefix

#==, #=~, #hash, #initialize, #to_regexp, #to_s

Constructor Details

This class inherits a constructor from IRC::Prefix

Class Method Details

.parse(raw_prefix) ⇒ Object



7
8
9
# File 'lib/irc/rfc2812/prefix.rb', line 7

def self.parse(raw_prefix)
  Helpers.parse_prefix raw_prefix
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/irc/rfc2812/prefix.rb', line 11

def valid?
  Helpers.valid_prefix? self.raw
end