Class: XMLRPC::Service::PublicInstanceMethodsInterface
- Inherits:
-
BasicInterface
- Object
- BasicInterface
- XMLRPC::Service::PublicInstanceMethodsInterface
- Defined in:
- lib/xmlrpc/utils.rb
Overview
class Interface
Instance Attribute Summary
Attributes inherited from BasicInterface
Instance Method Summary collapse
- #get_methods(obj, delim = ".") ⇒ Object
-
#initialize(prefix) ⇒ PublicInstanceMethodsInterface
constructor
A new instance of PublicInstanceMethodsInterface.
Methods inherited from BasicInterface
Constructor Details
#initialize(prefix) ⇒ PublicInstanceMethodsInterface
Returns a new instance of PublicInstanceMethodsInterface.
135 136 137 |
# File 'lib/xmlrpc/utils.rb', line 135 def initialize(prefix) super(prefix) end |
Instance Method Details
#get_methods(obj, delim = ".") ⇒ Object
139 140 141 142 143 144 |
# File 'lib/xmlrpc/utils.rb', line 139 def get_methods(obj, delim=".") prefix = @prefix + delim obj.class.public_instance_methods(false).collect { |name| [prefix + name.to_s, obj.method(name).to_proc, nil, nil] } end |