class Circed::UserMode

Defined in:

circed/channels/user_mode.cr

Constant Summary

MODE_HASH = {"o" => "@", "h" => "%", "v" => "+"}
VALID_MODES = ["o", "h", "v"]

Constructors

Instance Method Summary

Constructor Detail

def self.new(mode : String = "") #

[View source]

Instance Method Detail

def add(mode) #

[View source]
def has_all_modes?(modes) #

[View source]
def has_any_mode?(modes) #

[View source]
def has_mode?(mode) #

[View source]
def highest_mode : String #

[View source]
def is_half_operator? #

[View source]
def is_operator? #

[View source]
def is_voiced? #

[View source]
def mode : String #

[View source]
def remove(mode) #

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]