ruby_marks 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ruby_marks/recognizer.rb +3 -2
- data/lib/ruby_marks/version.rb +1 -1
- metadata +1 -1
@@ -23,7 +23,7 @@ module RubyMarks
|
|
23
23
|
def reset_document
|
24
24
|
@current_position = {x: 0, y: 0}
|
25
25
|
@clock_marks = []
|
26
|
-
@raised_watchers =
|
26
|
+
@raised_watchers = {}
|
27
27
|
@watchers = {}
|
28
28
|
end
|
29
29
|
|
@@ -52,7 +52,8 @@ module RubyMarks
|
|
52
52
|
def raise_watcher(name, *args)
|
53
53
|
watcher = @watchers[name]
|
54
54
|
if watcher
|
55
|
-
@raised_watchers
|
55
|
+
@raised_watchers[watcher.name] ||= 0
|
56
|
+
@raised_watchers[watcher.name] += 1
|
56
57
|
watcher.run(*args)
|
57
58
|
end
|
58
59
|
end
|
data/lib/ruby_marks/version.rb
CHANGED