J
Johannes Ahl-mann
hi,
is there an easy way to restrict evaluation of code to certain
methods/classes only??
i am fiddling around with domain specific languages in ruby and would
like to ensure that only a subset of ruby can be used in the DSL.
obviously the implementation of the DSL has to use the whole of ruby,
but it would be nice to be able to "hide" certain ruby methods from the
DSL (especially to prevent anyone from using them ;-)).
maybe it's a stupid thing to want to have, but just from a technical
standpoint i wonder if (and especially how ;-) this might be possible...
Johannes
is there an easy way to restrict evaluation of code to certain
methods/classes only??
i am fiddling around with domain specific languages in ruby and would
like to ensure that only a subset of ruby can be used in the DSL.
obviously the implementation of the DSL has to use the whole of ruby,
but it would be nice to be able to "hide" certain ruby methods from the
DSL (especially to prevent anyone from using them ;-)).
maybe it's a stupid thing to want to have, but just from a technical
standpoint i wonder if (and especially how ;-) this might be possible...
Johannes