Skip to content

Commit

Permalink
Fixup Ruby 2.6 only code now we're on 2.7 minimum.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Jan 19, 2024
1 parent c441713 commit 6791ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cff/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def to_yaml # :nodoc:

def method_missing(name, *args) # :nodoc:
if @index.respond_to?(name)
@dirty = true if name.to_s.end_with?('=') # Remove to_s when Ruby >2.6.
@dirty = true if name.end_with?('=')
@index.send(name, *args)
else
super
Expand Down

0 comments on commit 6791ad7

Please sign in to comment.