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)


5
6
7
# File 'lib/oga/whitelist.rb', line 5

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:



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

def to_blacklist
  Blacklist.new(names)
end