Class: Thread

Inherits:
Object
  • Object
show all
Defined in:
lib/ree_lib/packages/ree_dao/package/ree_dao/thread_parents.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ Thread

Returns a new instance of Thread.



24
25
26
27
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/thread_parents.rb', line 24

def initialize(*args, &block)
  @_parent = Thread.current
  _initialize(*args, &block)
end

Class Method Details

.parentsObject



37
38
39
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/thread_parents.rb', line 37

def self.parents
  ThreadParent::Parents.new(Thread.current)
end

Instance Method Details

#_initializeObject



22
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/thread_parents.rb', line 22

alias_method :_initialize, :initialize

#parentObject



29
30
31
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/thread_parents.rb', line 29

def parent
  @_parent
end

#parentsObject



33
34
35
# File 'lib/ree_lib/packages/ree_dao/package/ree_dao/thread_parents.rb', line 33

def parents
  ThreadParent::Parents.new(self)
end