introspection
How to determine whether a @selector wants a parameter?
The scenario presents itself where I have an object that stores an outside @selector for later use. By design, I would like to be able to add two kinds of selectors. The simple one, without parameters[详细]
2023-02-06 01:15 分类:问答How do I inspect the methods of a Ruby object?
I am wondering if there is a Ruby method call 开发者_如何学Cthat shows only the methods defined by the Ruby object it\'s called from, as opposed to all the methods defined by its ancestor classes, whi[详细]
2023-02-04 10:59 分类:问答JavaBeans and introspection - messed up on boolean and indexed properties?
A former colleague of mine started a discussion half an hour ago about JavaBeans, and why they didn\'t quite work the way he wants in JSF. The particular case is about boolean properties.[详细]
2023-02-04 08:17 分类:问答What's the best way to generate an API reference document using a Rails routes.rb file?
I am trying to document the API for my Rails application and I can\'t help but wonder if there is a better way to generate an开发者_JS百科 XML file based on my routes.rb file.I\'m envisioning somethin[详细]
2023-02-02 11:43 分类:问答getting the class path or name space of a class in python even if it is nested
I\'m currently writing a serialization module in Python that can serialize user defined classes. in order to do this I need to get the full name space of the object and write it to a file. I can then[详细]
2023-01-31 14:32 分类:问答JavaBeans Introspector does not correctly find property with interface hierarchy type
I read the JavaBeans specs but I found nowhere this behavior. Is it a bug ? testPropertyType fails because expects Data class[详细]
2023-01-30 06:25 分类:问答How to see function signature in Python?
Is there a way to introspe开发者_开发百科ct a function so that it shows me information on the arguments it takes (like number of args, type if possible, name of arguments if named) and the return valu[详细]
2023-01-29 22:06 分类:问答Introspection during Rails Test Execution -- How?
I am generating some output files during the execution of rails tests, and I would like to be able to name the files based o开发者_C百科n the current test class and current test method.Is there a way[详细]
2023-01-29 02:28 分类:问答C++11 reflection library [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-01-26 06:12 分类:问答why does python inspect.isclass think an instance is a class?
Given the following module: class Dummy(dict): def __init__(self, data): for key, value in data.iteritems():[详细]
2023-01-23 09:09 分类:问答