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
468 469 470 |
# File 'lib/fisk.rb', line 468 def block @block end |
Instance Method Details
#encode(buffer, labels) ⇒ Object
473 474 475 |
# File 'lib/fisk.rb', line 473 def encode buffer, labels block.call buffer.pos end |
#lazy? ⇒ Boolean
471 |
# File 'lib/fisk.rb', line 471 def lazy?; true; end |