lib/timeliness/format.rb in timeliness-0.4.4 vs lib/timeliness/format.rb in timeliness-0.4.5

- old
+ new

@@ -61,10 +61,10 @@ values = [nil] * 8 components.each do |component| position, code = Definitions.format_components[component] values[position] = code || "#{component}.to_i" if position end - instance_eval <<~DEF + instance_eval <<-DEF def process(#{components.join(',')}) [#{values.map { |i| i || 'nil' }.join(',')}] end DEF end