Class: Marmerdo::Relationship
- Inherits:
-
Object
- Object
- Marmerdo::Relationship
- Defined in:
- lib/marmerdo/relationship.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(str) ⇒ Relationship
constructor
A new instance of Relationship.
- #to_mermaid_str(from) ⇒ Object
Constructor Details
#initialize(str) ⇒ Relationship
Returns a new instance of Relationship.
8 9 10 |
# File 'lib/marmerdo/relationship.rb', line 8 def initialize(str) @str = str end |
Instance Attribute Details
#str ⇒ String
6 7 8 |
# File 'lib/marmerdo/relationship.rb', line 6 def str @str end |
Instance Method Details
#to_mermaid_str(from) ⇒ Object
12 13 14 |
# File 'lib/marmerdo/relationship.rb', line 12 def to_mermaid_str(from) "#{from} #{str}" end |