Class: IRC::Channel

Inherits:
Object
  • Object
show all
Defined in:
lib/em-ruby-irc/IRC-Channel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/em-ruby-irc/IRC-Channel.rb', line 3

def name
  @name
end

#usersObject

Returns the value of attribute users.



4
5
6
# File 'lib/em-ruby-irc/IRC-Channel.rb', line 4

def users
  @users
end