class GraphQLIncludable::Relay::EdgeWithNode
Public Class Methods
new(node, connection)
click to toggle source
Calls superclass method
# File lib/graphql_includable/relay/edge_with_node.rb, line 22 def initialize(node, connection) @edge = node @edge_to_node = ->() { connection.edge_to_node(@edge) } super(nil, connection) end
Public Instance Methods
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/graphql_includable/relay/edge_with_node.rb, line 33 def method_missing(method_name, *args, &block) if @edge.respond_to?(method_name) @edge.send(method_name, *args, &block) else super end end
node()
click to toggle source
# File lib/graphql_includable/relay/edge_with_node.rb, line 28 def node @node ||= @edge_to_node.call @node end
respond_to_missing?(method_name, include_private = false)
click to toggle source
Calls superclass method
# File lib/graphql_includable/relay/edge_with_node.rb, line 41 def respond_to_missing?(method_name, include_private = false) @edge.respond_to?(method_name) || super end