Class: Apollo::State
- Inherits:
-
Object
- Object
- Apollo::State
- Defined in:
- lib/apollo/state.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
Returns the value of attribute events.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#name ⇒ Object
Returns the value of attribute name.
-
#on_entry ⇒ Object
Returns the value of attribute on_entry.
-
#on_exit ⇒ Object
Returns the value of attribute on_exit.
-
#set_names ⇒ Object
Returns the value of attribute set_names.
Instance Method Summary collapse
-
#initialize(name, meta = {}) ⇒ State
constructor
A new instance of State.
- #to_s ⇒ Object
- #to_sym ⇒ Object
Constructor Details
#initialize(name, meta = {}) ⇒ State
Returns a new instance of State.
5 6 7 |
# File 'lib/apollo/state.rb', line 5 def initialize(name, = {}) @name, @events, @meta, @set_names = name, Hash.new, , Set.new end |
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
3 4 5 |
# File 'lib/apollo/state.rb', line 3 def events @events end |
#meta ⇒ Object
Returns the value of attribute meta.
3 4 5 |
# File 'lib/apollo/state.rb', line 3 def @meta end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/apollo/state.rb', line 3 def name @name end |
#on_entry ⇒ Object
Returns the value of attribute on_entry.
3 4 5 |
# File 'lib/apollo/state.rb', line 3 def on_entry @on_entry end |
#on_exit ⇒ Object
Returns the value of attribute on_exit.
3 4 5 |
# File 'lib/apollo/state.rb', line 3 def on_exit @on_exit end |
#set_names ⇒ Object
Returns the value of attribute set_names.
3 4 5 |
# File 'lib/apollo/state.rb', line 3 def set_names @set_names end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/apollo/state.rb', line 9 def to_s "#{name}" end |
#to_sym ⇒ Object
13 14 15 |
# File 'lib/apollo/state.rb', line 13 def to_sym name.to_sym end |