Sha256: 419cf1e8c68e49766d7a4dac08d89be4bf8c1981b784df2dbc1f9e3a10466560
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 Bytes
Contents
require 'ostruct' module ActionLogic class ActionConfiguration def self.configure(&block) block.call(configuration_options) end def self.configuration_options @configuration_options ||= OpenStruct.new end def self.benchmark? configuration_options.benchmark || false end def self.benchmark_log configuration_options.benchmark_log || $stdout end def self.reset! @configuration_options = OpenStruct.new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
action_logic-0.2.3 | lib/action_logic/action_configuration.rb |
action_logic-0.2.2 | lib/action_logic/action_configuration.rb |