Class: RubyApp::Application
- Inherits:
-
Object
- Object
- RubyApp::Application
- Extended by:
- Mixins::ConfigurationMixin, Mixins::DelegateMixin
- Defined in:
- lib/ruby_app/application.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Application
constructor
A new instance of Application.
Methods included from Mixins::ConfigurationMixin
Methods included from Mixins::DelegateMixin
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
15 16 17 |
# File 'lib/ruby_app/application.rb', line 15 def initialize @environment = {} end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
13 14 15 |
# File 'lib/ruby_app/application.rb', line 13 def environment @environment end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
13 14 15 |
# File 'lib/ruby_app/application.rb', line 13 def @options end |
Class Method Details
.create! ⇒ Object
23 24 25 |
# File 'lib/ruby_app/application.rb', line 23 def self.create! @@_application = ( Kernel.eval(RubyApp::Application.configuration._class) ).new end |
.destroy! ⇒ Object
27 28 29 |
# File 'lib/ruby_app/application.rb', line 27 def self.destroy! @@_application = nil end |
.get ⇒ Object
19 20 21 |
# File 'lib/ruby_app/application.rb', line 19 def self.get @@_application ||= nil end |