Class: RubyApp::Application
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
configuration
exists?, method_missing
Constructor Details
Returns a new instance of Application.
18
19
20
|
# File 'lib/ruby_app/application.rb', line 18
def initialize
@environment = {}
end
|
Instance Attribute Details
#environment ⇒ Object
Returns the value of attribute environment.
16
17
18
|
# File 'lib/ruby_app/application.rb', line 16
def environment
@environment
end
|
#options ⇒ Object
Returns the value of attribute options.
16
17
18
|
# File 'lib/ruby_app/application.rb', line 16
def options
@options
end
|
Class Method Details
.create! ⇒ Object
30
31
32
|
# File 'lib/ruby_app/application.rb', line 30
def self.create!
@@_application = ( Kernel.eval(RubyApp::Application.configuration._class) ).new
end
|
.create_context!(configuration_paths = File.join(RubyApp::ROOT, %w[configuration.yml])) ⇒ Object
.destroy! ⇒ Object
34
35
36
|
# File 'lib/ruby_app/application.rb', line 34
def self.destroy!
@@_application = nil
end
|
.exists? ⇒ Boolean
26
27
28
|
# File 'lib/ruby_app/application.rb', line 26
def self.exists?
return @@_application ||= nil
end
|
.get ⇒ Object
22
23
24
|
# File 'lib/ruby_app/application.rb', line 22
def self.get
@@_application ||= nil
end
|