Sha256: 15b5a1a42b3eb26e2317486c574aaca74c321a078386c9b3e2370d722f2c421c

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

module Vertebrae
  module Base
    extend Configuration


    def logger
      @@logger ||= Logger.new(STDOUT)
    end

    def logger=(logger)
      @@logger = logger
    end

    # implement this in your api
    #
    def new(options = {}, &block)
      raise "implement me!"
    end

    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

    def respond_to?(method, include_private = false)
      new.respond_to?(method, include_private) || super(method, include_private)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vertebrae-0.1.2 lib/base.rb