Class: Relayer::IRC::Channel
- Inherits:
-
Object
- Object
- Relayer::IRC::Channel
- Defined in:
- lib/relayer/irc/channel.rb
Instance Attribute Summary collapse
-
#users ⇒ Object
Returns the value of attribute users.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel) ⇒ Channel
constructor
A new instance of Channel.
- #to_s ⇒ Object
Constructor Details
#initialize(channel) ⇒ Channel
Returns a new instance of Channel.
13 14 15 16 |
# File 'lib/relayer/irc/channel.rb', line 13 def initialize(channel) @channel = channel @users = [] end |
Instance Attribute Details
#users ⇒ Object
Returns the value of attribute users.
3 4 5 |
# File 'lib/relayer/irc/channel.rb', line 3 def users @users end |
Class Method Details
.is_channel?(channel) ⇒ Boolean
5 6 7 |
# File 'lib/relayer/irc/channel.rb', line 5 def self.is_channel?(channel) channel[0] == '#' end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/relayer/irc/channel.rb', line 9 def to_s @channel end |