Class: Truffle::Attachments::Attachment
- Inherits:
-
Object
- Object
- Truffle::Attachments::Attachment
- Defined in:
- truffle/src/main/ruby/core/truffle/attachments.rb
Overview
Represents a block which has been installed.
Instance Method Summary (collapse)
-
- (Object) detach
Detach the code which was attached.
-
- (Attachment) initialize(handle)
constructor
A new instance of Attachment.
Constructor Details
- (Attachment) initialize(handle)
Returns a new instance of Attachment
37 38 39 |
# File 'truffle/src/main/ruby/core/truffle/attachments.rb', line 37 def initialize(handle) @handle = handle end |
Instance Method Details
- (Object) detach
Detach the code which was attached.
42 43 44 |
# File 'truffle/src/main/ruby/core/truffle/attachments.rb', line 42 def detach Truffle::Primitive.detach @handle end |