Class: GraphQL::Schema::TypeExpression
- Inherits:
-
Object
- Object
- GraphQL::Schema::TypeExpression
- Defined in:
- lib/graphql/schema/type_expression.rb
Instance Method Summary collapse
-
#initialize(schema, ast_node) ⇒ TypeExpression
constructor
A new instance of TypeExpression.
- #type ⇒ Object
Constructor Details
#initialize(schema, ast_node) ⇒ TypeExpression
Returns a new instance of TypeExpression.
4 5 6 7 |
# File 'lib/graphql/schema/type_expression.rb', line 4 def initialize(schema, ast_node) @schema = schema @ast_node = ast_node end |
Instance Method Details
#type ⇒ Object
8 9 10 |
# File 'lib/graphql/schema/type_expression.rb', line 8 def type @type ||= build_type(@schema, @ast_node) end |