Exception: Cleanroom::InaccessibleError

Inherits:
Error
  • Object
show all
Defined in:
lib/cleanroom/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, instance) ⇒ InaccessibleError



21
22
23
# File 'lib/cleanroom/errors.rb', line 21

def initialize(name, instance)
  @name, @instance = name, instance
end

Instance Method Details

#to_sObject



25
26
27
28
29
30
31
# File 'lib/cleanroom/errors.rb', line 25

def to_s
"Undefined local variable or method `\#{@name}' for \#{@instance}. It may have\nbeen removed for the purposes of evaluating the DSL or for added security. If\nyou feel you have reached this message in error, please open an issue.\n".gsub(/\r?\n/, ' ')
end