Module: October::Debugger::ClassMethods

Defined in:
lib/october/debugger.rb

Instance Method Summary collapse

Instance Method Details

#alias_pry(before) ⇒ Object



36
37
38
39
40
41
42
43
44
45
46
# File 'lib/october/debugger.rb', line 36

def alias_pry(before)
  class_eval %{

    def #{before}_with_pry
      init_pry
      #{before}_without_pry
    end

    alias_method_chain :#{before}, :pry
  }
end