lib/kumogata/ext/string_ext.rb in kumogata-0.3.9 vs lib/kumogata/ext/string_ext.rb in kumogata-0.3.10

- old
+ new

@@ -1,7 +1,5 @@ -require 'term/ansicolor' - class String @@colorize = false class << self def colorize=(value) @@ -149,10 +147,10 @@ ERB.new(#{data.inspect}, nil, #{trim_mode.inspect}).result(binding).split(#{null.inspect}).zip(@__functions__) EOS data = data.flatten.select {|i| not i.nil? }.map {|i| if i.kind_of?(String) - StringIO.new(i).to_a + i.lines.to_a else i end }.flatten