Class: Thread
Class Method Summary collapse
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, val) ⇒ Object
-
#initialize ⇒ Thread
constructor
A new instance of Thread.
Constructor Details
#initialize ⇒ Thread
Returns a new instance of Thread
6 7 8 |
# File 'opal/stdlib/thread.rb', line 6 def initialize @vars = {} end |
Class Method Details
.current ⇒ Object
2 3 4 |
# File 'opal/stdlib/thread.rb', line 2 def self.current @current ||= self.new end |