module Defly::Inspectable

Public Instance Methods

raise(error) click to toggle source
Calls superclass method
# File lib/defly/inspectable.rb, line 11
def raise error
  @__defly_watch ||= []
  
  if @__defly_watch.include? error.class or @__defly_watch.include? error
    puts ">>>>> Error received:"
    p error
    puts ">>>>> "
    
    Rib.enable_anchor do
      Rib.anchor self
    end
  end
  super
end
watch_error(error) click to toggle source
# File lib/defly/inspectable.rb, line 6
def watch_error error
  @__defly_watch ||= []
  @__defly_watch << error
end