Sha256: ead79b9fbd93bca5bbdcd21db33bbbd72bf24817c2df342cb96bdf3a2f83e6ec

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

# pushes a new +:int+ ValuePoint, with value determined by a call to IntType.any_value
#

class IntRandomInstruction < Instruction
  def preconditions?
    true # no preconditions
  end
  def setup
  end
  def derive
    @result = ValuePoint.new("int", IntType.any_value)
  end
  def cleanup
    pushes :int, @result
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nudge-0.2.9 lib/instructions/int/int_random.rb
nudge-0.2.8 lib/instructions/int/int_random.rb
nudge-0.2.7 lib/instructions/int/int_random.rb