File: stepping.rb

package info (click to toggle)
ruby-pry-byebug 3.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 324 kB
  • sloc: ruby: 1,171; makefile: 4
file content (31 lines) | stat: -rw-r--r-- 332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# frozen_string_literal: true

binding.pry

#
# Toy class for testing steps
#
class SteppingExample
  def method_a
    z = 2
    z + method_b
  end

  def method_b
    c = Math::PI / 2
    c += method_c
    c + 1
  end

  def method_c
    z = 4
    z
  end
end

ex = SteppingExample.new.method_a
2.times do
  ex += 1
end

_foo = ex