Class: Oga::Whitelist Private
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from Blacklist
Instance Method Summary collapse
- #allow?(name) ⇒ TrueClass|FalseClass private
- #to_blacklist ⇒ Oga::Blacklist private
Methods inherited from Blacklist
Constructor Details
This class inherits a constructor from Oga::Blacklist
Instance Method Details
#allow?(name) ⇒ TrueClass|FalseClass
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/oga/whitelist.rb', line 9 def allow?(name) names.include?(name) end |
#to_blacklist ⇒ Oga::Blacklist
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/oga/whitelist.rb', line 16 def to_blacklist Blacklist.new(names) end |