Class: RubyApp::Application

Inherits:
Object
  • Object
show all
Extended by:
Mixins::ConfigurationMixin, Mixins::DelegateMixin
Defined in:
lib/ruby_app/application.rb

Direct Known Subclasses

_APPLICATION_UPCODE_::Application

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Mixins::ConfigurationMixin

configuration

Methods included from Mixins::DelegateMixin

method_missing

Constructor Details

#initializeApplication

Returns a new instance of Application.



15
16
17
# File 'lib/ruby_app/application.rb', line 15

def initialize
  @environment = {}
end

Instance Attribute Details

#environmentObject (readonly)

Returns the value of attribute environment.



13
14
15
# File 'lib/ruby_app/application.rb', line 13

def environment
  @environment
end

#optionsObject (readonly)

Returns the value of attribute options.



13
14
15
# File 'lib/ruby_app/application.rb', line 13

def options
  @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

.getObject



19
20
21
# File 'lib/ruby_app/application.rb', line 19

def self.get
  @@_application ||= nil
end