Skip to content

Commit c3974af

Browse files
committedJun 8, 2015
Add Rubinius::Thunk#value accessors.
This will allow thunk method values to be inspected without having to call the method or changed without having to redeclare the method and invalidate VM method caches.
1 parent 3c7b4ec commit c3974af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎kernel/bootstrap/thunk.rb

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ def self.new(value)
44
Rubinius.primitive :thunk_create
55
raise PrimitiveFailure, "Thunk.new primitive failed"
66
end
7+
8+
attr_accessor :value
79
end
810

911
class CallUnit

0 commit comments

Comments
 (0)
Please sign in to comment.