Class: Automaton::Latex::State
- Inherits:
-
Struct
- Object
- Struct
- Automaton::Latex::State
- Defined in:
- lib/latex.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
43 44 45 |
# File 'lib/latex.rb', line 43 def name @name end |
#x ⇒ Object
Returns the value of attribute x
43 44 45 |
# File 'lib/latex.rb', line 43 def x @x end |
#y ⇒ Object
Returns the value of attribute y
43 44 45 |
# File 'lib/latex.rb', line 43 def y @y end |
Instance Method Details
#to_s ⇒ Object
44 45 46 |
# File 'lib/latex.rb', line 44 def to_s "\\State[%s]{(%.2f, %.2f)}{#{name}}" % self.to_a end |