Skip to content

Commit

Permalink
Remove ruby2_keywords usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Jun 13, 2024
1 parent 43e377b commit 5535cea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions lib/graphql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@
require "forwardable"

module GraphQL
# forwards-compat for argument handling
module Ruby2Keywords
if RUBY_VERSION < "2.7"
def ruby2_keywords(*)
end
end
end

class Error < StandardError
end

Expand Down
3 changes: 1 addition & 2 deletions lib/graphql/schema/member/type_system_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ module GraphQL
class Schema
class Member
module TypeSystemHelpers
def initialize(*args, &block)
def initialize(...)
super
@to_non_null_type ||= nil
@to_list_type ||= nil
end
ruby2_keywords :initialize if respond_to?(:ruby2_keywords, true)

# @return [Schema::NonNull] Make a non-null-type representation of this type
def to_non_null_type
Expand Down

0 comments on commit 5535cea

Please sign in to comment.