Class: SynFlowFactory::Transition

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src, label, dest) ⇒ Transition

Returns a new instance of Transition.



47
48
49
# File 'lib/syn_flow.rb', line 47

def initialize ( src, label, dest )
  @src, @label, @dest = src, label, dest
end

Instance Attribute Details

#destObject (readonly)

Returns the value of attribute dest.



45
46
47
# File 'lib/syn_flow.rb', line 45

def dest
  @dest
end

#labelObject (readonly)

Returns the value of attribute label.



45
46
47
# File 'lib/syn_flow.rb', line 45

def label
  @label
end

#srcObject (readonly)

Returns the value of attribute src.



45
46
47
# File 'lib/syn_flow.rb', line 45

def src
  @src
end

Instance Method Details

#==(rhs) ⇒ Object



55
56
57
58
59
60
# File 'lib/syn_flow.rb', line 55

def == ( rhs )
  rhs.is_a? self.class and
   @label == rhs.label and
     @dest == rhs.dest and
       @src == rhs.src
end

#to_aObject



51
52
53
# File 'lib/syn_flow.rb', line 51

def to_a
  [@src, @label, @dest]
end