Class: JekyllRPG::Edge
- Inherits:
-
Object
- Object
- JekyllRPG::Edge
- Defined in:
- lib/edge.rb
Overview
Edge between two documents
Instance Attribute Summary collapse
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#referent ⇒ Object
Returns the value of attribute referent.
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(referent, reference) ⇒ Edge
constructor
A new instance of Edge.
Constructor Details
#initialize(referent, reference) ⇒ Edge
Returns a new instance of Edge.
8 9 10 11 |
# File 'lib/edge.rb', line 8 def initialize(referent, reference) @referent = referent @reference = reference end |
Instance Attribute Details
#reference ⇒ Object
Returns the value of attribute reference.
6 7 8 |
# File 'lib/edge.rb', line 6 def reference @reference end |
#referent ⇒ Object
Returns the value of attribute referent.
6 7 8 |
# File 'lib/edge.rb', line 6 def referent @referent end |
Instance Method Details
#hash ⇒ Object
13 14 15 16 17 18 |
# File 'lib/edge.rb', line 13 def hash { 'reference' => reference.hash, 'referent' => referent.hash } end |