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.



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

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



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

def return_value
  @return_value
end

Class Method Details

.send(thread, ret = nil) ⇒ Object



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

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