Class: Parslet::Context
- Inherits:
-
Object
- Object
- Parslet::Context
- Defined in:
- lib/graphql/language/transform.rb
Instance Method Summary collapse
Instance Method Details
#create_node(name, attributes) ⇒ Object
2 3 4 5 |
# File 'lib/graphql/language/transform.rb', line 2 def create_node(name, attributes) node_class = GraphQL::Language::Nodes.const_get(name) node_class.new(attributes) end |