Sha256: d503cf522672e0a9458b6dd27b79f2a73ff1053c30ef97142874e5e718277da2
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
module Statemachine class Superstate < State attr_accessor :startstate_id attr_reader :history def initialize(id, superstate, statemachine) super(id, superstate, statemachine) @startstate = nil @history = nil end def is_concrete? return false end def substate_exiting(substate) @history = substate end def add_substates(*substate_ids) do_substate_adding(substate_ids) end def to_s return "'#{id}' superstate" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
statemachine-0.2.0 | lib/statemachine/super_state.rb |