Exception: MultiTkIp_OK

Inherits:
Exception
  • Object
show all
Defined in:
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.


50
51
52
53
# File 'lib/multi-tk.rb', line 50

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


55
56
57
# File 'lib/multi-tk.rb', line 55

def return_value
  @return_value
end

Class Method Details

.send(thread, ret = nil) ⇒ Object


46
47
48
# File 'lib/multi-tk.rb', line 46

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