*** interval.rb.org 2011-12-02 11:34:08.094171322 +0100 --- interval.rb 2011-12-02 11:29:57.487641548 +0100 *************** *** 92,102 **** intervals parts = @numbers end ! parts.each { |part| ! @model.concat(index_lookup(part).sort_by { |item| ! comparison_value(item) ! }) ! } end @model end --- 92,110 ---- intervals parts = @numbers end ! if parts.is_a?(String) ! parts.each_char { |part| ! @model.concat(index_lookup(part).sort_by { |item| ! comparison_value(item) ! }) ! } ! else ! parts.each { |part| ! @model.concat(index_lookup(part).sort_by { |item| ! comparison_value(item) ! }) ! } ! end end @model end