module Segno::Configuration
Constants
- DEFAULT_B
- DEFAULT_K
- DEFAULT_SEED
- DEFAULT_SEED_VEC
- VALID_OPTIONS_KEYS
Public Class Methods
extended(base)
click to toggle source
# File lib/segno/configuration.rb, line 18 def self.extended(base) base.reset end
Public Instance Methods
configure() { |self| ... }
click to toggle source
# File lib/segno/configuration.rb, line 22 def configure yield self self end
options()
click to toggle source
# File lib/segno/configuration.rb, line 27 def options VALID_OPTIONS_KEYS.inject({}) do |options, key| options.merge!(key => send(key)) end end
reset()
click to toggle source
# File lib/segno/configuration.rb, line 33 def reset self.b = DEFAULT_B self.k = DEFAULT_K self.seed = DEFAULT_SEED self.seed_vec = DEFAULT_SEED_VEC self end