Skip to content

Latest commit

 

History

History
67 lines (26 loc) · 714 Bytes

Wrapper.rst

File metadata and controls

67 lines (26 loc) · 714 Bytes

Wrapper

Constants

Files

Methods

#wrapper

def wrapper
  props.symbolize_keys!
  begin
    most_concrete_class = class_from_type
    wrapped_rel = most_concrete_class.constantize.new
  rescue NameError
    return self
  end

  wrapped_rel.init_on_load(self, self._start_node_id, self._end_node_id, self.rel_type)
  wrapped_rel
end