Sha256: 6db1900d2042e3ea3a24f4348a04cc3f413cff2c2802e5a72c5e84ae5d84c445
Contents?: true
Size: 266 Bytes
Versions: 5
Compression:
Stored size: 266 Bytes
Contents
module Slacky class Service def initialize(config, bot_class) @config = config @bot_class = bot_class end def run puts "#{@config.name} is running" bot = Bot.new @config @bot_class.new bot bot.run end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
slacky-0.3.5 | lib/slacky/service.rb |
slacky-0.3.4 | lib/slacky/service.rb |
slacky-0.3.3 | lib/slacky/service.rb |
slacky-0.3.2 | lib/slacky/service.rb |
slacky-0.3.1 | lib/slacky/service.rb |