Class: Automaton::Latex::State

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



43
44
45
# File 'lib/latex.rb', line 43

def name
  @name
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



43
44
45
# File 'lib/latex.rb', line 43

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



43
44
45
# File 'lib/latex.rb', line 43

def y
  @y
end

Instance Method Details

#to_sObject



44
45
46
# File 'lib/latex.rb', line 44

def to_s
  "\\State[%s]{(%.2f, %.2f)}{#{name}}" % self.to_a
end