Class: Marmerdo::Relationship

Inherits:
Object
  • Object
show all
Defined in:
lib/marmerdo/relationship.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#strString

Returns:

  • (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