Module: NanoRpc::Proxy::ClassMethods
- Defined in:
- lib/nano_rpc/proxy.rb
Instance Attribute Summary collapse
-
#proxy_method_def ⇒ Object
readonly
Returns the value of attribute proxy_method_def.
-
#proxy_param_def ⇒ Object
readonly
Returns the value of attribute proxy_param_def.
Instance Method Summary collapse
- #proxy_method(name, signature = nil) ⇒ Object
- #proxy_methods ⇒ Object
- #proxy_params(param_def = nil) ⇒ Object
Instance Attribute Details
#proxy_method_def ⇒ Object (readonly)
Returns the value of attribute proxy_method_def.
14 15 16 |
# File 'lib/nano_rpc/proxy.rb', line 14 def proxy_method_def @proxy_method_def end |
#proxy_param_def ⇒ Object (readonly)
Returns the value of attribute proxy_param_def.
14 15 16 |
# File 'lib/nano_rpc/proxy.rb', line 14 def proxy_param_def @proxy_param_def end |
Instance Method Details
#proxy_method(name, signature = nil) ⇒ Object
20 21 22 23 |
# File 'lib/nano_rpc/proxy.rb', line 20 def proxy_method(name, signature = nil) @proxy_method_def ||= {} @proxy_method_def[name] = signature end |
#proxy_methods ⇒ Object
25 26 27 |
# File 'lib/nano_rpc/proxy.rb', line 25 def proxy_methods proxy_method_def&.keys&.sort end |
#proxy_params(param_def = nil) ⇒ Object
16 17 18 |
# File 'lib/nano_rpc/proxy.rb', line 16 def proxy_params(param_def = nil) @proxy_param_def = param_def end |