class GraphQLSchema::Directive

Constants

BUILTIN

Public Class Methods

new(directive) click to toggle source
# File lib/graphql_schema.rb, line 232
def initialize(directive)
  @hash = directive
end

Public Instance Methods

builtin?() click to toggle source
# File lib/graphql_schema.rb, line 240
def builtin?
  BUILTIN.include?(name)
end
locations() click to toggle source
# File lib/graphql_schema.rb, line 236
def locations
  @hash.fetch('locations')
end