Skip to content

Commit 81cae00

Browse files
authored
Merge pull request #264 from pocke/Remove_code_for_old_Rubies
Remove code for old Rubies
2 parents 8630541 + 6b0009a commit 81cae00

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/rbs_rails/util.rb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,8 @@ module Util
44

55
extend self
66

7-
if '2.7' <= RUBY_VERSION
8-
def module_name(mod)
9-
# HACK: RBS doesn't have UnboundMethod#bind_call
10-
(_ = MODULE_NAME).bind_call(mod)
11-
end
12-
else
13-
def module_name(mod)
14-
MODULE_NAME.bind(mod).call
15-
end
7+
def module_name(mod)
8+
MODULE_NAME.bind_call(mod)
169
end
1710

1811
def format_rbs(rbs)

0 commit comments

Comments
 (0)