Sha256: e245e10c0d00d08a95eb553e947b89251833d8ead3a527e81fff2d6609b6c234

Contents?: true

Size: 278 Bytes

Versions: 1

Compression:

Stored size: 278 Bytes

Contents

module MagicMirror

  class CommandCache < Array
    def <<(value)
      #puts "you pushed"
      MagicMirror.mirror.speak_into(value)
      super
    end

    def reset
      self.clear
      MagicMirror.mirror.speak_into("MagicMirror.clearCommandCache();")
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
magic_mirror-0.1.1 lib/magic_mirror/command_cache.rb