Module: Rib::Byebug::Imp

Included in:
Rib
Defined in:
lib/rib/extra/byebug.rb

Instance Method Summary collapse

Instance Method Details

#byebugObject



12
13
14
15
16
# File 'lib/rib/extra/byebug.rb', line 12

def byebug
  return if Rib::Byebug.disabled?

  ::Byebug::RibProcessor.start
end

#finishObject



30
31
32
# File 'lib/rib/extra/byebug.rb', line 30

def finish
  throw :rib_byebug, [:finish]
end

#locationObject



18
19
20
# File 'lib/rib/extra/byebug.rb', line 18

def location
  Rib.shell.config[:byebug].location
end

#next(lines = 1) ⇒ Object



26
27
28
# File 'lib/rib/extra/byebug.rb', line 26

def next lines=1
  throw :rib_byebug, [:next, lines]
end

#step(times = 1) ⇒ Object



22
23
24
# File 'lib/rib/extra/byebug.rb', line 22

def step times=1
  throw :rib_byebug, [:step, times]
end