metaprogramming
ruby rescue constant missing?
few months ago I\'ve been using some ruby library ( I can\'t recall which one exactly, unfortunately )[详细]
2023-03-30 01:36 分类:问答Using asType with Mixin annotation
I\'d like write a custom type conversion Category in Groovy. The goal is to assign the values of a Map to the fields of a Groovy bean. In the future there will be different response types. The values[详细]
2023-03-29 20:45 分类:问答Same Controller/View for multiple resources
I have a workflow app written in Rails and there are a number of prompts which the user will go through. When these prompts/manual actions are \"proceeded\" a time stamp is stored against the a workfl[详细]
2023-03-29 13:52 分类:问答access to a class variable
I\'m trying to access to a class variable through an instance method through an eval (Function) class Foo[详细]
2023-03-29 07:46 分类:问答Problems with last recursion in metaprogramming
I have the following (partial) code in a class where I try to evaluate a value against a list of values via metaprogramming in C++11.[详细]
2023-03-29 06:47 分类:问答Compile and consume class at runtime
I\'m developing a sort of a rules engine, where users define a rule as a set of conditions and actions.Those conditions and 开发者_开发问答actions are then parsed into code to be executed.I am able to[详细]
2023-03-29 04:14 分类:问答Ruby object added to meta class is not visible
I have been trying to get the hang of metaprogramming in ruby by reading other people\'s code on the same. I have this piece of code that is probably too cryptic for me to debug. Here is the code.[详细]
2023-03-28 20:50 分类:问答How to set "dynamically" variable values?
I am using Ruby on Rails 3.0.9 and I am trying to set \"dynamically\" some variable values. That is...[详细]
2023-03-28 05:39 分类:问答Is there an equivalent of python's __name__ for a Javascript object
How do I find the string form开发者_高级运维 of an object name in javascript?function bar(){};[详细]
2023-03-27 20:53 分类:问答Given a Ruby metaclass, how do I get the instance to which it is attached?
This is the inverse of the question \"Given an instance of a Ruby object, how do I get its metaclass?\"[详细]
2023-03-27 18:27 分类:问答