⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (550 Bytes)
Bug #4559
ยป proc-equality.rb
aprescott (Adam Prescott)
, 04/07/2011 05:07 AM
puts
RUBY_DESCRIPTION
puts
proc
{
1
}
==
proc
{
1
}
puts
proc
{
1
+
1
}
==
proc
{
1
+
1
}
puts
proc
{
|
x
|
x
}
==
proc
{
|
x
|
x
}
puts
proc
{
|
x
|
x
.
foo
}
==
proc
{
|
x
|
x
.
foo
}
puts
lambda
{
1
}
==
lambda
{
1
}
puts
lambda
{
1
+
1
}
==
lambda
{
1
+
1
}
puts
lambda
{
|
x
|
x
}
==
lambda
{
|
x
|
x
}
puts
lambda
{
|
x
|
x
.
foo
}
==
lambda
{
|
x
|
x
.
foo
}
puts
Proc
.
new
{
1
}
==
Proc
.
new
{
1
}
puts
Proc
.
new
{
1
+
1
}
==
Proc
.
new
{
1
+
1
}
puts
Proc
.
new
{
|
x
|
x
}
==
Proc
.
new
{
|
x
|
x
}
puts
Proc
.
new
{
|
x
|
x
.
foo
}
==
Proc
.
new
{
|
x
|
x
.
foo
}
(1-1/1)
Loading...