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