Class: Thread
- Inherits:
-
Object
- Object
- Thread
- Defined in:
- lib/thread_parent.rb
Class Method Summary collapse
Instance Method Summary collapse
- #_initialize ⇒ Object
-
#initialize(*args, &block) ⇒ Thread
constructor
A new instance of Thread.
- #parent ⇒ Object
- #parents ⇒ Object
Constructor Details
Class Method Details
.parents ⇒ Object
39 40 41 |
# File 'lib/thread_parent.rb', line 39 def self.parents ThreadParent::Parents.new(Thread.current) end |
Instance Method Details
#_initialize ⇒ Object
24 |
# File 'lib/thread_parent.rb', line 24 alias_method :_initialize, :initialize |
#parent ⇒ Object
31 32 33 |
# File 'lib/thread_parent.rb', line 31 def parent @_parent end |
#parents ⇒ Object
35 36 37 |
# File 'lib/thread_parent.rb', line 35 def parents ThreadParent::Parents.new(self) end |