Method: Ircbot::Client::Config::Generator#initialize
- Defined in:
- lib/ircbot/client/config/generator.rb
#initialize(options = {}) ⇒ Generator
Returns a new instance of Generator.
9 10 11 12 13 14 |
# File 'lib/ircbot/client/config/generator.rb', line 9 def initialize( = {}) @nick = [:nick] @code = [:code] || read_template @nick = current_user + "_bot" if @nick.to_s.empty? end |