We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2061f99 commit 721d8cbCopy full SHA for 721d8cb
Gemfile
@@ -2,3 +2,4 @@ source "https://rubygems.org"
2
3
gem "rake"
4
gem "test-unit"
5
+gem "ruby2_keywords", group: :test
test/test_pp.rb
@@ -3,6 +3,16 @@
require 'pp'
require 'delegate'
require 'test/unit'
6
+require 'ruby2_keywords'
7
+
8
+# Define bind_call for Ruby 2.6 and earlier
9
+class UnboundMethod
10
+ unless public_method_defined?(:bind_call)
11
+ def bind_call(obj, *args, &block)
12
+ bind(obj).call(*args, &block)
13
+ end
14
15
+end
16
17
module PPTestModule
18
0 commit comments