Sha256: 8d23334633433448e2318c894f1b8c48daec902b0edaadac8d192b4ac431e543
Contents?: true
Size: 728 Bytes
Versions: 3
Compression:
Stored size: 728 Bytes
Contents
# A sub flow is a flow like any other. # However the name should begin with # _ to indicate that it is a sub # flow this will prevent it being # generated as a top-level flow by # Origen. # Any arguments passed in when # instantiating this flow will be available via a hash as the second # argument, here called options, although the naming is arbitrary. Flow.create do |options| # Define default options options = { :pulses => 4, :post_verify => true, :number => 0, }.merge(options) number = options[:number] options[:pulses].times do |i| func :erase_all, number: number number += i * 10 end if options[:post_verify] import 'erase_vfy', number: number end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
origen_testers-0.19.0 | program/_erase.rb |
origen_testers-0.18.0 | program/_erase.rb |
origen_testers-0.17.0 | program/_erase.rb |