Class: Etsm::State

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enter, exit) ⇒ State

Returns a new instance of State.



31
32
33
34
# File 'lib/etsm.rb', line 31

def initialize(enter, exit)
    @enter = enter
    @exit = exit
end

Instance Attribute Details

#enterObject (readonly)

Returns the value of attribute enter.



28
29
30
# File 'lib/etsm.rb', line 28

def enter
  @enter
end

#exitObject (readonly)

Returns the value of attribute exit.



29
30
31
# File 'lib/etsm.rb', line 29

def exit
  @exit
end