class String
Public Instance Methods
blacklist()
click to toggle source
# File lib/dpl/string_ext.rb, line 14 def blacklist @is_whitelisted = false self end
blacklisted?()
click to toggle source
# File lib/dpl/string_ext.rb, line 20 def blacklisted? @is_whitelisted.nil? ? false : !@is_whitelisted end
whitelist()
click to toggle source
# File lib/dpl/string_ext.rb, line 4 def whitelist @is_whitelisted = true self end
whitelisted?()
click to toggle source
# File lib/dpl/string_ext.rb, line 10 def whitelisted? @is_whitelisted end