module Pad

Public Class Methods

build(method, options, &block) click to toggle source

@api private

# File lib/pad.rb, line 30
def build(method, options, &block)
  options = options.dup
  builder(options).public_send(method, options, &block)
end
builder(options) click to toggle source

@api private

# File lib/pad.rb, line 36
def builder(options)
  options.delete(:builder) || configuration.builder
end
config() { |configuration| ... } click to toggle source
# File lib/pad.rb, line 20
def config
  yield configuration if block_given?
  configuration
end
configuration() click to toggle source

@api private

# File lib/pad.rb, line 41
def configuration
  @configuration ||= Configuration.new
end
reset() click to toggle source
# File lib/pad.rb, line 25
def reset
  @configuration = Configuration.new
end