module Take2
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
config()
click to toggle source
# File lib/take2.rb, line 17 def config @configuration ||= Configuration.new end
configure() { |config| ... }
click to toggle source
# File lib/take2.rb, line 29 def configure if block_given? yield(config) config.validate!(config.to_hash) end end
included(base)
click to toggle source
# File lib/take2.rb, line 8 def self.included(base) base.extend(ClassMethods) base.send(:set_defaults) base.send(:include, InstanceMethods) end
local_defaults(options)
click to toggle source
# File lib/take2.rb, line 25 def local_defaults(options) configuration.validate!(options) end
reset(options = {})
click to toggle source
# File lib/take2.rb, line 21 def reset(options = {}) @configuration = Configuration.new(options) end