Class: YTLJit::FileOutputStream
- Inherits:
-
OutputStream
- Object
- OutputStream
- YTLJit::FileOutputStream
- Defined in:
- lib/ytljit/asm.rb
Instance Method Summary collapse
- #emit(code) ⇒ Object
-
#initialize(st) ⇒ FileOutputStream
constructor
A new instance of FileOutputStream.
Methods inherited from OutputStream
#asm=, #base_address, #var_base_address
Constructor Details
#initialize(st) ⇒ FileOutputStream
Returns a new instance of FileOutputStream.
75 76 77 |
# File 'lib/ytljit/asm.rb', line 75 def initialize(st) @stream = st end |
Instance Method Details
#emit(code) ⇒ Object
79 80 81 |
# File 'lib/ytljit/asm.rb', line 79 def emit(code) @stream.write(code) end |