Class: DRb::DRbServer::InvokeMethod
- Inherits:
-
Object
- Object
- DRb::DRbServer::InvokeMethod
- Includes:
- InvokeMethod18Mixin
- Defined in:
- lib/drb/drb.rb,
lib/drb/drb.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(drb_server, client) ⇒ InvokeMethod
constructor
A new instance of InvokeMethod.
- #perform ⇒ Object
Methods included from InvokeMethod18Mixin
#block_yield, #perform_with_block
Constructor Details
#initialize(drb_server, client) ⇒ InvokeMethod
Returns a new instance of InvokeMethod.
1624 1625 1626 1627 |
# File 'lib/drb/drb.rb', line 1624 def initialize(drb_server, client) @drb_server = drb_server @client = client end |
Instance Method Details
#perform ⇒ Object
1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 |
# File 'lib/drb/drb.rb', line 1629 def perform @result = nil @succ = false if @block @result = perform_with_block else @result = perform_without_block end @succ = true case @result when Array if @msg_id == :to_ary @result = DRbArray.new(@result) end end return @succ, @result rescue NoMemoryError, SystemExit, SystemStackError, SecurityError raise rescue Exception @result = $! return @succ, @result end |