Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jemc committed Jun 8, 2015
1 parent 3c7b4ec commit c3974af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/bootstrap/thunk.rb
Expand Up @@ -4,6 +4,8 @@ def self.new(value)
Rubinius.primitive :thunk_create
raise PrimitiveFailure, "Thunk.new primitive failed"
end

attr_accessor :value
end

class CallUnit
Expand Down

0 comments on commit c3974af

Please sign in to comment.