Class: AliveState::Registry
- Inherits:
-
Object
- Object
- AliveState::Registry
- Defined in:
- lib/alive_state/registry.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
readonly
Returns the value of attribute application.
Instance Method Summary collapse
-
#initialize ⇒ Registry
constructor
A new instance of Registry.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize ⇒ Registry
5 6 7 |
# File 'lib/alive_state/registry.rb', line 5 def initialize @application = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
9 10 11 |
# File 'lib/alive_state/registry.rb', line 9 def method_missing(name, *args, &block) @application << AliveState::Application.new(name, &block) end |
Instance Attribute Details
#application ⇒ Object (readonly)
Returns the value of attribute application.
3 4 5 |
# File 'lib/alive_state/registry.rb', line 3 def application @application end |