Project

General

Profile

Actions

Feature #17721

closed

Proc.new should be able to contruct a lambda

Added by bughit (bug hit) almost 4 years ago. Updated about 3 years ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:102834]

Description

since procs and lambdas are of the same type, as long as Proc::new exists, it should be able to create either.

class Proc
  def augment
    self.class.new lambda? do 
      call
    end
  end
end
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0