Class: YAIB::Channel
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(channel, bot) ⇒ Channel
constructor
A new instance of Channel.
Methods inherited from Respond
Constructor Details
#initialize(channel, bot) ⇒ Channel
Returns a new instance of Channel.
5 6 7 8 9 10 |
# File 'lib/yaib/channel.rb', line 5 def initialize(channel, bot) @bot = bot @name = channel @channel = @name @bot.irc.join channel end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/yaib/channel.rb', line 3 def name @name end |