Class: IRC::Client::Channel::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/failirc/client/channel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel) ⇒ Topic

Returns a new instance of Topic.



34
35
36
37
# File 'lib/failirc/client/channel.rb', line 34

def initialize (channel)
    @server  = channel.server
    @channel = channel
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



31
32
33
# File 'lib/failirc/client/channel.rb', line 31

def channel
  @channel
end

#serverObject (readonly)

Returns the value of attribute server.



31
32
33
# File 'lib/failirc/client/channel.rb', line 31

def server
  @server
end

#setByObject (readonly)

Returns the value of attribute setBy.



31
32
33
# File 'lib/failirc/client/channel.rb', line 31

def setBy
  @setBy
end

#setOnObject

Returns the value of attribute setOn.



32
33
34
# File 'lib/failirc/client/channel.rb', line 32

def setOn
  @setOn
end

#textObject (readonly)

Returns the value of attribute text.



31
32
33
# File 'lib/failirc/client/channel.rb', line 31

def text
  @text
end

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/failirc/client/channel.rb', line 43

def nil?
    text.nil?
end

#to_sObject



39
40
41
# File 'lib/failirc/client/channel.rb', line 39

def to_s
    text
end