Class: MagicMirror::CommandCache
- Inherits:
-
Array
- Object
- Array
- MagicMirror::CommandCache
- Defined in:
- lib/magic_mirror/command_cache.rb
Instance Method Summary collapse
Instance Method Details
#<<(value) ⇒ Object
4 5 6 7 8 |
# File 'lib/magic_mirror/command_cache.rb', line 4 def <<(value) #puts "you pushed" MagicMirror.mirror.speak_into(value) super end |
#reset ⇒ Object
10 11 12 13 |
# File 'lib/magic_mirror/command_cache.rb', line 10 def reset self.clear MagicMirror.mirror.speak_into("MagicMirror.clearCommandCache();") end |