Class: Hoozuki::Automaton::StateID
- Inherits:
-
Object
- Object
- Hoozuki::Automaton::StateID
- Defined in:
- lib/hoozuki/automaton/state_id.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(id) ⇒ StateID
constructor
A new instance of StateID.
- #new_state ⇒ Object
Constructor Details
#initialize(id) ⇒ StateID
Returns a new instance of StateID.
8 9 10 |
# File 'lib/hoozuki/automaton/state_id.rb', line 8 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/hoozuki/automaton/state_id.rb', line 6 def id @id end |
Class Method Details
Instance Method Details
#<=>(other) ⇒ Object
24 25 26 27 28 |
# File 'lib/hoozuki/automaton/state_id.rb', line 24 def <=>(other) return nil unless other.is_a?(StateID) @id <=> other.id end |