Class: IRC::Server::Channel::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/failirc/server/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
38
39
# File 'lib/failirc/server/channel.rb', line 34

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

    @semaphore = Mutex.new
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



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

def channel
  @channel
end

#serverObject (readonly)

Returns the value of attribute server.



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

def server
  @server
end

#setByObject

Returns the value of attribute setBy.



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

def setBy
  @setBy
end

#setOnObject

Returns the value of attribute setOn.



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

def setOn
  @setOn
end

#textObject

Returns the value of attribute text.



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

def text
  @text
end

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/failirc/server/channel.rb', line 56

def nil?
    text.nil?
end

#to_sObject



52
53
54
# File 'lib/failirc/server/channel.rb', line 52

def to_s
    text
end