On Wed, Jul 11, 2012 at 3:40 AM, Matthew Kerwin wrote:
> My only request would be that you rename the method something like
> 'create_lambda' (since you're not really casting s as such, you're
> using it as a factory) or get_lambda (if you want to make the lambda
> seem like a property of s).
It'
On Wed, Jul 11, 2012 at 12:48 AM, Michael Sokol wrote:
>> class Object
>> def to_lambda(method, *a)
>>lambda {|*b| send(method, *a, *b)}
>> end
>> end
>
> Correct me if I'm wrong (I've had a glass too much), but this looks like
> partially applied functions to me. It's used all over the pla
On Tue, Jul 10, 2012 at 12:43 PM, John Lee wrote:
> Dear Ruby programmers,
>
> Well explained. But what good will it do to make a class method? Compare
> to a instance method.
>
>
The answer to that question depends entirely on your (or your project's)
needs.
Will code that uses the Drawing clas
On Monday, July 9, 2012 11:05:22 AM UTC-4, Robert Klemme wrote:
How would you compare this to lazy,rb?
http://moonbase.rydia.net/software/lazy.rb/
-- You received this message because you are subscribed to the Google Groups
ruby-talk-google group. To post to this group, send email to
ruby-tal
On Sat, Jul 7, 2012 at 5:32 AM, Eliezer Croitoru wrote:
> well this is the reason i am trying to:
> 1. make it more modular by using methods that can be changed easily
> 2. thing about efficiency.
> 3. consult with others.
>
> for now there is one guy that requested me for that ACL of deny\allow