Class: GraphLink

Inherits:
Struct
  • Object
show all
Defined in:
lib/fsm-0.0.0/graph/directed_graph.rb,
lib/fsm-0.0.0/graph/directed_graph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from


16
17
18
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 16

def from
  @from
end

#infoObject

Returns the value of attribute info

Returns:

  • (Object)

    the current value of info


16
17
18
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 16

def info
  @info
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to


16
17
18
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 16

def to
  @to
end

Instance Method Details

#inspectObject


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