Class: IRC::Channel
- Inherits:
-
Object
- Object
- IRC::Channel
- Defined in:
- lib/em-ruby-irc/IRC-Channel.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#users ⇒ Object
Returns the value of attribute users.
Instance Method Summary collapse
-
#initialize(name) ⇒ Channel
constructor
Initialize channel and set userlist.
Constructor Details
#initialize(name) ⇒ Channel
Initialize channel and set userlist
7 8 9 10 |
# File 'lib/em-ruby-irc/IRC-Channel.rb', line 7 def initialize(name) @name = name @users = Array.new end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/em-ruby-irc/IRC-Channel.rb', line 3 def name @name end |
#users ⇒ Object
Returns the value of attribute users.
4 5 6 |
# File 'lib/em-ruby-irc/IRC-Channel.rb', line 4 def users @users end |