Module: GraphQL::Language::Nodes::AbstractNode::DefinitionNode
- Defined in:
- lib/graphql/language/nodes.rb
Instance Attribute Summary collapse
-
#definition_line ⇒ Object
readonly
This AST node's line returns the first line, which may be the description.
Instance Method Summary collapse
- #initialize(definition_line: nil, **_rest) ⇒ Object
- #marshal_dump ⇒ Object
- #marshal_load(values) ⇒ Object
Instance Attribute Details
#definition_line ⇒ Object (readonly)
This AST node's line returns the first line, which may be the description.
Returns
Integer— The first line of the definition (not the description) : Integer?
23 24 25 |
# File 'lib/graphql/language/nodes.rb', line 23 def definition_line @definition_line end |
Instance Method Details
#initialize(definition_line: nil, **_rest) ⇒ Object
25 26 27 28 |
# File 'lib/graphql/language/nodes.rb', line 25 def initialize(definition_line: nil, **_rest) @definition_line = definition_line super(**_rest) end |
#marshal_dump ⇒ Object
30 31 32 |
# File 'lib/graphql/language/nodes.rb', line 30 def marshal_dump super << @definition_line end |
#marshal_load(values) ⇒ Object
34 35 36 37 |
# File 'lib/graphql/language/nodes.rb', line 34 def marshal_load(values) @definition_line = values.pop super end |