Skip to content

Commit cf32d33

Browse files
committed
Update Proc to match methods spec
1 parent 713a452 commit cf32d33

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

spec/tags/truffle/methods_tags.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ fails:Public methods on Mutex should not include marshal_dump
5353
fails:Public methods on Thread should not include freeze
5454
fails:Public methods on Thread should include add_trace_func
5555
fails:Public methods on Thread should include set_trace_func
56-
fails:Public methods on Proc should not include block
57-
fails:Public methods on Proc should not include block=
58-
fails:Public methods on Proc should not include bound_method
59-
fails:Public methods on Proc should not include bound_method=
60-
fails:Public methods on Proc should not include ruby_method
61-
fails:Public methods on Proc should not include ruby_method=
62-
fails:Public methods on Proc should include hash
6356
fails:Public methods on MatchData should include hash
6457
fails:Public methods on Method should include clone
6558
fails:Public methods on Method should include original_name

src/main/ruby/truffleruby/core/proc.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636

3737
class Proc
38-
attr_accessor :block
39-
attr_accessor :bound_method
40-
attr_accessor :ruby_method
41-
38+
alias_method :hash, :hash
4239
alias_method :===, :call
4340

4441
def curry(curried_arity = nil)

0 commit comments

Comments
 (0)