class Safemode::SecurityError
Public Class Methods
new(type, value = nil)
click to toggle source
Calls superclass method
# File lib/safemode/exceptions.rb, line 11 def initialize(type, value = nil) type = @@types[type] if @@types.include?(type) super "Safemode doesn't allow to access '#{type}'" + (value ? " on #{value}" : '') end