Class: Oga::Whitelist Private

Inherits:
Blacklist show all
Defined in:
lib/oga/whitelist.rb

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

#names

Instance Method Summary collapse

Methods inherited from Blacklist

#+, #each, #initialize

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.

Returns:

  • (TrueClass|FalseClass)


9
10
11
# File 'lib/oga/whitelist.rb', line 9

def allow?(name)
  names.include?(name)
end

#to_blacklistOga::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.

Returns:



16
17
18
# File 'lib/oga/whitelist.rb', line 16

def to_blacklist
  Blacklist.new(names)
end