Exception: MultiTkIp_OK

Inherits:
Exception
  • Object
show all
Defined in:
ext/lib/multi-tk.rb

Overview

exceptiopn to treat the return value from IP

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ret = nil) ⇒ MultiTkIp_OK

Returns a new instance of MultiTkIp_OK.



107
108
109
110
# File 'ext/lib/multi-tk.rb', line 107

def initialize(ret=nil)
  super('succeed')
  @return_value = ret
end

Instance Attribute Details

#return_valueObject (readonly) Also known as: value

Returns the value of attribute return_value.



112
113
114
# File 'ext/lib/multi-tk.rb', line 112

def return_value
  @return_value
end

Class Method Details

.send(thread, ret = nil) ⇒ Object



103
104
105
# File 'ext/lib/multi-tk.rb', line 103

def self.send(thread, ret=nil)
  thread.raise self.new(ret)
end