Module: Nano::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.
16 17 18 |
# File 'lib/nano_rpc/proxy.rb', line 16 def proxy_method_def @proxy_method_def end |
#proxy_param_def ⇒ Object (readonly)
Returns the value of attribute proxy_param_def.
16 17 18 |
# File 'lib/nano_rpc/proxy.rb', line 16 def proxy_param_def @proxy_param_def end |
Instance Method Details
#proxy_method(name, signature = nil) ⇒ Object
22 23 24 25 |
# File 'lib/nano_rpc/proxy.rb', line 22 def proxy_method(name, signature = nil) @proxy_method_def ||= {} @proxy_method_def[name] = signature end |
#proxy_methods ⇒ Object
27 28 29 |
# File 'lib/nano_rpc/proxy.rb', line 27 def proxy_methods proxy_method_def&.keys&.sort end |
#proxy_params(param_def = nil) ⇒ Object
18 19 20 |
# File 'lib/nano_rpc/proxy.rb', line 18 def proxy_params(param_def = nil) @proxy_param_def = param_def end |