Skip to content

Commit 2edfa08

Browse files
committed
Remove binding.pry
1 parent 6e56f3d commit 2edfa08

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

refactoring/ch11-dealing-with-generalization/09-replace-inheritance-with-delegation-demo.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def apply(account)
4747
policy << Rule.new('age_must_be_greater_than', 28)
4848
policy << Rule.new('country_must_be', 'china')
4949
policy << Rule.new('account_balance_must_be_greater_than', 10_000)
50-
require "pry"; binding.pry
5150

5251
policy.apply(account)
5352
end

ruby/connection-pooling-demo/demo.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
}
1919

2020
# result = pool.with {|conn| conn.query("SELECT sleep(5);")}
21-
# binding.pry
2221

2322
threads = []
2423

@@ -29,7 +28,6 @@
2928
threads << Thread.new {pool.with {|conn| conn.query("SELECT sleep(5);")}}
3029
end
3130

32-
binding.pry
3331
# puts result.to_a
3432

3533

ruby/metaprogramming/blocks/monitor_blocks/redflag.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ def event(name)
55
puts "#{Time.now} ALERT: #{name}" if yield
66
end
77

8-
# require 'pry'; binding.pry
9-
108
script_dir = File.dirname(__FILE__)
119
Dir.glob("#{script_dir}/events/*events.rb").each { |file| load file }
1210

ruby/ruby-self/tangle.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module Document
1414
def print_to_screen
1515
prepare_cover
1616
format_for_screen
17-
# binding.pry
1817
print
1918
end
2019

0 commit comments

Comments
 (0)