Sha256: 02b9419f3ede7c9beb431e6a1e106250ab37eabdf7cb8cc42312a25b569bbcb6
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true # # Abstraction over WebMock to reduce duplication # # @author Mikael Henriksson <mikael@zoolutions.se> # @since 0.1.0 # module StubRequests # extends "self" # @!parse extend self extend self # includes "UriFor" and extends "UriFor" # using the API.included callback # @!parse include UriFor # @!parse extend UriFor # includes "API" and extends "API" # using the API.included callback # @!parse include API # @!parse extend API include API # # Allows the gem to be configured # # # @return [Configuration] <description> # # @yieldparam [Configuration] config <description> # @yieldreturn [<type>] <describe what yield should return> def configure yield(config) if block_given? config end # # Contains gem configuration # # # @return [Configuration] # def config @config ||= Configuration.new end def logger config.logger end def logger=(obj) config.logger = obj end # # The current version of the gem # # # @return [String] version string, `"1.0.0"` # def version VERSION end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stub_requests-0.1.11 | lib/stub_requests/stub_requests.rb |
stub_requests-0.1.10 | lib/stub_requests/stub_requests.rb |