Class: Fisk::Lazy
- Inherits:
-
Struct
- Object
- Struct
- Fisk::Lazy
- Includes:
- InstructionPredicates
- Defined in:
- lib/fisk.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
Instance Method Summary collapse
Methods included from InstructionPredicates
#comment?, #has_temp_registers?, #jump?, #label?, #retry?
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
559 560 561 |
# File 'lib/fisk.rb', line 559 def block @block end |
Instance Method Details
#encode(buffer, labels) ⇒ Object
564 565 566 |
# File 'lib/fisk.rb', line 564 def encode buffer, labels block.call buffer.pos end |
#lazy? ⇒ Boolean
562 |
# File 'lib/fisk.rb', line 562 def lazy?; true; end |