Sha256: 451054b61957c6b2a18b9df88d2ccea69bca1523116bca206dd4241b87e79271
Contents?: true
Size: 458 Bytes
Versions: 9
Compression:
Stored size: 458 Bytes
Contents
class FillIN::Factory TAG = /^(.+\S+)\s*\((.*)\)$/ def initialize(label, value, within: nil) @label = label @value = value @within = within end def call if !@value.nil? && @value[':'] step = FillIN::ComplexInput elsif @label =~ TAG @label = $1 tag = $2 step = Pickles.config.step_by_tag(tag) || FillIN::Input else step = FillIN::Input end step.new(@label, @value, @within) end end
Version data entries
9 entries across 9 versions & 1 rubygems