Sha256: 7380fff7cebf25a0283cf98366d7c0f950653708710dd9295848880d15c512c4
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
module SimControl class Scenario def initialize(*args) options = Hash.try_convert(args.last) if options args.pop end @commands = args @options = options end def options @options.map { |k, v| "--#{ k } #{ v }" }.join " " end def commands @commands.join(" ").strip end def args [commands, options].join " " end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
SimControl-0.1.3 | lib/SimControl/scenario.rb |