Skip to content

Commit 23b2310

Browse files
committed
Add a new basic operator `nil?' for Ruby 2.7
Close 30.
1 parent 9042d67 commit 23b2310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/power_assert/enable_tracepoint_events.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module PowerAssert
1818

1919
basic_operators = [
2020
:+, :-, :*, :/, :%, :==, :===, :<, :<=, :<<, :[], :[]=,
21-
:length, :size, :empty?, :succ, :>, :>=, :!, :!=, :=~, :freeze, :-@, :max, :min
21+
:length, :size, :empty?, :succ, :>, :>=, :!, :!=, :=~, :freeze, :-@, :max, :min, :nil?
2222
]
2323

2424
bug11182 = Class.new do

0 commit comments

Comments
 (0)