Class: GraphLink
- Inherits:
-
Struct
- Object
- Struct
- GraphLink
- Defined in:
- lib/fsm-0.0.0/graph/directed_graph.rb,
lib/fsm-0.0.0/graph/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
16 17 18 |
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 16 def from @from end |
#info ⇒ Object
Returns the value of attribute info
16 17 18 |
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 16 def info @info end |
#to ⇒ Object
Returns the value of attribute to
16 17 18 |
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 16 def to @to end |
Instance Method Details
#inspect ⇒ Object
18 19 20 21 |
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 18 def inspect info_str = info ? info.inspect + "-" : "" "#{from.inspect}-#{info_str}>#{to.inspect}" end |