Skip to content

Commit 55d568d

Browse files
committed
Use Ripper::Filter.method_defined?(:state) instead of RUBY_VERSION >= '2.5.0'
1 parent 72ced08 commit 55d568d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/parser/ripper_state_lex.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class RDoc::RipperStateLex
44
# TODO: Remove this constants after Ruby 2.4 EOL
5-
RIPPER_HAS_LEX_STATE = (RUBY_VERSION >= '2.5.0')
5+
RIPPER_HAS_LEX_STATE = Ripper::Filter.method_defined?(:state)
66

77
EXPR_NONE = 0
88
EXPR_BEG = 1

0 commit comments

Comments
 (0)