Sha256: 3ab04dc0c4a05f55972cb7bcbdeac3d90a61d9ac98a5629923303417c15b0227
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
module Polo class Configuration attr_reader :on_duplicate_strategy, :blacklist def initialize(options={}) options = { on_duplicate: nil, obfuscate: [] }.merge(options) @on_duplicate_strategy = options[:on_duplicate] @blacklist = options[:obfuscate] end def obfuscate(*fields) @blacklist = fields end def on_duplicate(strategy) @on_duplicate_strategy = strategy end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polo-0.1.0 | lib/polo/configuration.rb |