lib/fusuma/config.rb in fusuma-0.2.7 vs lib/fusuma/config.rb in fusuma-0.3.0
- old
+ new
@@ -12,10 +12,14 @@
def threshold(action_type)
instance.threshold(action_type)
end
+ def interval(action_type)
+ instance.interval(action_type)
+ end
+
def reload
instance.reload
end
end
@@ -38,9 +42,14 @@
cache(seek_index) { search_config(keymap, seek_index) }
end
def threshold(action_type)
seek_index = ['threshold', action_type]
+ cache(seek_index) { search_config(keymap, seek_index) } || 1
+ end
+
+ def interval(action_type)
+ seek_index = ['interval', action_type]
cache(seek_index) { search_config(keymap, seek_index) } || 1
end
private