Class: GraphQL::Language::Nodes::AbstractNode
- Inherits:
-
Object
- Object
- GraphQL::Language::Nodes::AbstractNode
- Defined in:
- lib/graphql/language/nodes/deep_freeze_ext.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#deep_freeze ⇒ Object
Public: Freeze entire Node tree.
Instance Method Details
#deep_freeze ⇒ Object
Public: Freeze entire Node tree
Returns self Node.
12 13 14 15 16 17 |
# File 'lib/graphql/language/nodes/deep_freeze_ext.rb', line 12 def deep_freeze children.each(&:deep_freeze) scalars.each { |s| s && s.freeze } freeze self end |