Module: INat::App::Globals
- Defined in:
- lib/inat/app/globals.rb
Class Method Summary collapse
- .config ⇒ Object
- .config=(value) ⇒ Object
- .current_task ⇒ Object
- .current_task=(value) ⇒ Object
- .logger ⇒ Object
- .logger=(value) ⇒ Object
- .status ⇒ Object
- .status=(value) ⇒ Object
Class Method Details
.config ⇒ Object
23 24 25 |
# File 'lib/inat/app/globals.rb', line 23 def config @@config end |
.config=(value) ⇒ Object
27 28 29 |
# File 'lib/inat/app/globals.rb', line 27 def config= value @@config = value end |
.current_task ⇒ Object
15 16 17 |
# File 'lib/inat/app/globals.rb', line 15 def current_task Thread.current.thread_variable_get 'current_task' end |
.current_task=(value) ⇒ Object
19 20 21 |
# File 'lib/inat/app/globals.rb', line 19 def current_task= value Thread.current.thread_variable_set 'current_task', value end |
.logger ⇒ Object
7 8 9 |
# File 'lib/inat/app/globals.rb', line 7 def logger @@logger end |
.logger=(value) ⇒ Object
11 12 13 |
# File 'lib/inat/app/globals.rb', line 11 def logger= value @@logger = value end |
.status ⇒ Object
31 32 33 |
# File 'lib/inat/app/globals.rb', line 31 def status @@status end |
.status=(value) ⇒ Object
35 36 37 |
# File 'lib/inat/app/globals.rb', line 35 def status= value @@status = value end |