lib/rails/graphql/request/component.rb
# Helper to memoize results from parent delegation
Helper to memoize results from parent delegation
Helper to memoize results from parent delegation
def parent_memoize(*methods)
            methods.each do |method_name|
              define_method(method_name) do
                result = parent.public_send(method_name)
                define_singleton_method(method_name) { result }
                result
              end
            end
          end
def parent_memoize ( * methods ) methods . each do | method_name | define_method ( method_name ) do result = parent . public_send ( method_name ) define_singleton_method ( method_name ) { result } result end end end
Helper to memoize results from parent delegation
Helper to memoize results from parent delegation
methods