Class: Automaton::Latex::Transition

Inherits:
Struct
  • Object
show all
Defined in:
lib/latex.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



49
50
51
# File 'lib/latex.rb', line 49

def from
  @from
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



49
50
51
# File 'lib/latex.rb', line 49

def label
  @label
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



49
50
51
# File 'lib/latex.rb', line 49

def to
  @to
end

Instance Method Details

#to_sObject



50
51
52
# File 'lib/latex.rb', line 50

def to_s
  "\\EdgeL{#{from}}{#{to}}{#{label}}"
end