Class: Pacer::EdgeWrapper

Inherits:
ElementWrapper show all
Includes:
Comparable, Core::Graph::EdgesRoute, EdgeMixin, ElementMixin
Defined in:
lib/pacer/wrappers.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from EdgeMixin

#add_extensions, #clone_into, #copy_into, #delete!, #display_name, #in_vertex, #inspect, #out_vertex

Methods included from ElementMixin

#<=>, #==, #[], #[]=, #e, #each, #element_id, #eql?, #from_graph?, #graph, #graph=, #properties, #properties=, #result, #v

Methods included from Core::Graph::EdgesRoute

#both_v, #e, #element_type, #in_v, #labels, #out_v, #to_h

Methods included from Core::Graph::ElementRoute

#[], #build_index, #clone_into, #copy_into, #delete!, #e, #element_ids, #filter, #properties, #property?, #result, #subgraph, #v

Methods inherited from ElementWrapper

clear_cache, #element_id, #eql?, extensions, #hash, #initialize, wrap

Constructor Details

This class inherits a constructor from Pacer::ElementWrapper

Class Method Details

.wrapper_for(exts) ⇒ Object



146
147
148
149
# File 'lib/pacer/wrappers.rb', line 146

def wrapper_for(exts)
  @wrappers ||= {}
  @wrappers[exts] ||= build_edge_wrapper(exts)
end

Instance Method Details

#elementObject



162
163
164
# File 'lib/pacer/wrappers.rb', line 162

def element
  @element
end

#extensionsObject



158
159
160
# File 'lib/pacer/wrappers.rb', line 158

def extensions
  self.class.extensions
end