Exception: Cleanroom::InaccessibleError

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

Instance Method Summary collapse

Constructor Details

#initialize(name, instance) ⇒ InaccessibleError

Returns a new instance of 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
  <<-EOH.gsub(/\r?\n/, " ")
Undefined local variable or method `#{@name}' for #{@instance}. It may have
been removed for the purposes of evaluating the DSL or for added security. If
you feel you have reached this message in error, please open an issue.
  EOH
end