Sha256: f53a45789335da05d8c3e85aece60436ad3fed956f28811c16396b0704118f7b
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
require 'forwardable' require 'hashie' require 'slack' module Slappy class << self @configuration = nil def configure @configuration = Configuration.new yield configuration if block_given? configuration end def configuration @configuration || configure end def method_missing(method, *args, &block) return super unless client.respond_to?(method) client.send(method, *args, &block) end def respond_to?(method) client.respond_to?(method) || super end private def client @client ||= Client.new end end end require 'slappy/client' require 'slappy/configuration' require 'slappy/event' require 'slappy/listener' require 'slappy/version'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slappy-0.2.1 | lib/slappy.rb |