module BetterFx
Constants
- VERSION
- VERSION_DATE
Public Class Methods
configuration()
click to toggle source
Returns the singleton class's configuration object
@return [Configuration] the current configuration object
# File lib/better_fx.rb, line 23 def configuration @configuration ||= Configuration.new end
configure(opts = {}) { |configuration| ... }
click to toggle source
Allows the user to set configuration options
by yielding the configuration block
@param opts [Hash] an optional hash of options, supported options are `reset: true` @return [Configuration] the current configuration object
# File lib/better_fx.rb, line 14 def configure(opts = {}) @configuration = nil if opts.key?(:reset) && opts[:reset] yield(configuration) if block_given? configuration end