Sha256: 8e3c423ca85b689ec2a0c37297090493b084c127be849bc27a1778a78fcd86d7
Contents?: true
Size: 614 Bytes
Versions: 59
Compression:
Stored size: 614 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, }.merge(options) options[:pulses].times do func :erase_all end if options[:post_verify] import 'erase_vfy' end end
Version data entries
59 entries across 59 versions & 1 rubygems