Sha256: 296e4947f0943f97b0dc4d4d0911bb094cce126f247aaa5e424777d0a7d0aa2b

Contents?: true

Size: 557 Bytes

Versions: 3

Compression:

Stored size: 557 Bytes

Contents

# Sets the value of the context attribute Interpreter#evaluate_references to false.
# This will persist until the next time the Interpreter evaluates a ReferencePoint;
# instead of attempting to look up the variable or name referred to by the ReferencePoint,
# it will instead push the ReferencePoint onto the +:name+ stack.
#
# needs: nothing
#
# pushes: nothing
#
#
#
class NameDisableLookupInstruction < Instruction
  def preconditions?
    true
  end
  def setup
  end
  def derive
  end
  def cleanup
    @context.evaluate_references = false
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nudge-0.2.9 lib/instructions/name/name_disable_lookup.rb
nudge-0.2.8 lib/instructions/name/name_disable_lookup.rb
nudge-0.2.7 lib/instructions/name/name_disable_lookup.rb