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

#channel ⇒ Object (readonly)

Returns the value of attribute channel.



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

def channel
  @channel
end

#server ⇒ Object (readonly)

Returns the value of attribute server.



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

def server
  @server
end

#setBy ⇒ Object

Returns the value of attribute setBy.



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

def setBy
  @setBy
end

#setOn ⇒ Object

Returns the value of attribute setOn.



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

def setOn
  @setOn
end

#text ⇒ Object

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_s ⇒ Object



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

def to_s
    text
end