Class: GQL::Schema::Parameter
Constant Summary collapse
- TYPES =
{ req: 'required', opt: 'optional', rest: 'rest', keyreq: 'required keyword', key: 'optional keyword', keyrest: 'keyword rest', block: 'block' }.freeze
Instance Attribute Summary
Attributes inherited from Node
#ast_node, #context, #target, #variables
Instance Method Summary collapse
Methods inherited from Node
build_class, #initialize, validate_is_subclass!, #value
Constructor Details
This class inherits a constructor from GQL::Node
Instance Method Details
#raw_value ⇒ Object
19 20 21 |
# File 'lib/gql/schema/parameter.rb', line 19 def raw_value "#{target[1]} (#{TYPES[target[0]] || target[0]})" end |