Sha256: a74c3f244adba50f9f396f28a7dba7a5c0448ac351931785a52b765d4f131824
Contents?: true
Size: 260 Bytes
Versions: 4
Compression:
Stored size: 260 Bytes
Contents
class String def whitelist @is_whitelisted = true self end def whitelisted? @is_whitelisted end def blacklist @is_whitelisted = false self end def blacklisted? @is_whitelisted.nil? ? false : !@is_whitelisted end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dpl-2.0.3.beta.4 | lib/dpl/string_ext.rb |
dpl-2.0.3.beta.3 | lib/dpl/string_ext.rb |
dpl-2.0.3.beta.2 | lib/dpl/string_ext.rb |
dpl-2.0.3.beta.1 | lib/dpl/string_ext.rb |