lib/jldrill/model/Contents.rb in jldrill-0.5.1.7 vs lib/jldrill/model/Contents.rb in jldrill-0.6.0.1
- old
+ new
@@ -1,5 +1,6 @@
+# encoding: utf-8
require 'jldrill/model/Bin'
module JLDrill
# Where all the items are stored
@@ -32,10 +33,10 @@
end
# Adds a new bin to the end of the contents
def addBin(name)
@bins.push(Bin.new(name, @bins.length))
- @res.push(Regexp.new("^#{name}$"))
+ @res.push(Regexp.new("^#{name}$",nil))
end
# Returns the number items in all the bins
def length
total = 0