Class: Epilog::Filter::Blacklist
- Defined in:
- lib/epilog/filter/blacklist.rb
Direct Known Subclasses
Constant Summary collapse
- DEFAULT_BLACKLIST =
%w[ password pass pw secret ].freeze
Instance Attribute Summary collapse
-
#blacklist ⇒ Object
readonly
Returns the value of attribute blacklist.
Instance Method Summary collapse
-
#initialize(blacklist = DEFAULT_BLACKLIST) ⇒ Blacklist
constructor
A new instance of Blacklist.
Methods inherited from HashKey
Constructor Details
#initialize(blacklist = DEFAULT_BLACKLIST) ⇒ Blacklist
Returns a new instance of Blacklist.
15 16 17 |
# File 'lib/epilog/filter/blacklist.rb', line 15 def initialize(blacklist = DEFAULT_BLACKLIST) @blacklist = Hash[blacklist.map { |b| [b.to_s.downcase, nil] }] end |
Instance Attribute Details
#blacklist ⇒ Object (readonly)
Returns the value of attribute blacklist.
13 14 15 |
# File 'lib/epilog/filter/blacklist.rb', line 13 def blacklist @blacklist end |