Class: Fisk::Lazy

Inherits:
Struct
  • Object
show all
Includes:
InstructionPredicates
Defined in:
lib/fisk.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from InstructionPredicates

#comment?, #has_temp_registers?, #jump?, #label?, #retry?

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


471
# File 'lib/fisk.rb', line 471

def lazy?; true; end