Class: YAIB::Config
- Inherits:
-
Object
- Object
- YAIB::Config
- Defined in:
- lib/yaib/config.rb
Instance Attribute Summary collapse
-
#channels ⇒ Object
Returns the value of attribute channels.
-
#commands ⇒ Object
Returns the value of attribute commands.
-
#host ⇒ Object
Returns the value of attribute host.
-
#listeners ⇒ Object
Returns the value of attribute listeners.
-
#log ⇒ Object
Returns the value of attribute log.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nick ⇒ Object
Returns the value of attribute nick.
-
#pass ⇒ Object
Returns the value of attribute pass.
-
#port ⇒ Object
Returns the value of attribute port.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#server ⇒ Object
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/yaib/config.rb', line 5 def initialize @nick = "yaib-bot" @name = "yaib-bot" @channels = [] @port = 6667 @host = "arcath.net" @log = Logger.new("log/yaib.log", "weekly") @listeners = [] @prefix = "!" end |
Instance Attribute Details
#channels ⇒ Object
Returns the value of attribute channels.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def channels @channels end |
#commands ⇒ Object
Returns the value of attribute commands.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def commands @commands end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def host @host end |
#listeners ⇒ Object
Returns the value of attribute listeners.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def listeners @listeners end |
#log ⇒ Object
Returns the value of attribute log.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def log @log end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def name @name end |
#nick ⇒ Object
Returns the value of attribute nick.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def nick @nick end |
#pass ⇒ Object
Returns the value of attribute pass.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def pass @pass end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def port @port end |
#prefix ⇒ Object
Returns the value of attribute prefix.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def prefix @prefix end |
#server ⇒ Object
Returns the value of attribute server.
3 4 5 |
# File 'lib/yaib/config.rb', line 3 def server @server end |