Class: IRC::Client::Channel::Topic
- Defined in:
- lib/failirc/client/channel.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
-
#setBy ⇒ Object
readonly
Returns the value of attribute setBy.
-
#setOn ⇒ Object
Returns the value of attribute setOn.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(channel) ⇒ Topic
constructor
A new instance of Topic.
- #nil? ⇒ Boolean
- #to_s ⇒ Object
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
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
31 32 33 |
# File 'lib/failirc/client/channel.rb', line 31 def channel @channel end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
31 32 33 |
# File 'lib/failirc/client/channel.rb', line 31 def server @server end |
#setBy ⇒ Object (readonly)
Returns the value of attribute setBy.
31 32 33 |
# File 'lib/failirc/client/channel.rb', line 31 def setBy @setBy end |
#setOn ⇒ Object
Returns the value of attribute setOn.
32 33 34 |
# File 'lib/failirc/client/channel.rb', line 32 def setOn @setOn end |
#text ⇒ Object (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
43 44 45 |
# File 'lib/failirc/client/channel.rb', line 43 def nil? text.nil? end |
#to_s ⇒ Object
39 40 41 |
# File 'lib/failirc/client/channel.rb', line 39 def to_s text end |