Methods

Class/Module Index [+]

Quicksearch

PryDebug::ConditionalBreakpoint

Attributes

condition[RW]

Public Instance Methods

is_at?(binding) click to toggle source
# File lib/pry_debug/conditional_breakpoint.rb, line 5
def is_at?(binding)
  condition ? binding.eval(condition) : true
rescue Exception # error in the code
  false
end
to_s() click to toggle source
# File lib/pry_debug/conditional_breakpoint.rb, line 11
def to_s
  condition ? " (if #{condition})" : ""
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.