Class: GraphLink
- Inherits:
-
Struct
- Object
- Struct
- GraphLink
- Defined in:
- lib/graphr/directed_graph.rb,
lib/graphr/directed_graph.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#info ⇒ Object
Returns the value of attribute info.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from
13 14 15 |
# File 'lib/graphr/directed_graph.rb', line 13 def from @from end |
#info ⇒ Object
Returns the value of attribute info
13 14 15 |
# File 'lib/graphr/directed_graph.rb', line 13 def info @info end |
#to ⇒ Object
Returns the value of attribute to
13 14 15 |
# File 'lib/graphr/directed_graph.rb', line 13 def to @to end |
Instance Method Details
#inspect ⇒ Object
15 16 17 18 |
# File 'lib/graphr/directed_graph.rb', line 15 def inspect info_str = info ? info.inspect + "-" : "" "#{from.inspect}-#{info_str}>#{to.inspect}" end |