From: LAMBEAU Bernard Date: 2010-05-19T07:50:57+09:00 Subject: About proc and binding --001485f85d1a7208460486e62c77 Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm currently working on a _dsl_ method that allows writing expressions given though a proc: dsl{ x > y } I would like to be ensure that x and y are free variables in that proc, meaning that: x = 5 lambda{ puts x }.call would result in a NameError: undefined local variable or method `x'. Is this possible in ruby, i.e. overriding the binding of a proc object, in any way? Thanks, Bernard --001485f85d1a7208460486e62c77--