Module: Ruby::RPC
- Defined in:
- lib/ruby/rpc.rb,
lib/ruby/rpc/version.rb
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
Class Method Details
.class_factory(name) ⇒ Object
22 23 24 |
# File 'lib/ruby/rpc.rb', line 22 def class_factory name Object.const_set(name,Class.new() { include Ruby::RPC::DeferCalls; extend Ruby::RPC::DeferCalls }) end |
.client ⇒ Object
19 20 21 |
# File 'lib/ruby/rpc.rb', line 19 def client Object.const_get('Ruby::RPC').const_set('CLIENT',true) end |
.enable ⇒ Object
12 13 14 15 |
# File 'lib/ruby/rpc.rb', line 12 def enable require 'ruby/rpc/remote' require 'ruby/rpc/patch' if Object.const_defined? 'Ruby::RPC::CLIENT' end |
.server ⇒ Object
16 17 18 |
# File 'lib/ruby/rpc.rb', line 16 def server Object.const_get('Ruby::RPC').const_set('SERVER',true) end |