module MagicMirror
Constants
- FAYE_PORT
- VERSION
Public Class Methods
command_cache()
click to toggle source
# File lib/magic_mirror.rb, line 37 def self.command_cache # [ "RenderingCanvas.new('myCanvas', { title: 'trtl', minsize: [800, 600], is_test: true })", # "RenderingcLine.new('myCanvas', 0, 0, 50, 50)" # ] @@command_cache end
command_cache=(value)
click to toggle source
# File lib/magic_mirror.rb, line 44 def self.command_cache=(value) @@command_cache=value end
mirror()
click to toggle source
# File lib/magic_mirror.rb, line 25 def self.mirror @@mirror end
new(options = {})
click to toggle source
# File lib/magic_mirror.rb, line 17 def self.new(options = {}) return @@mirror unless @@mirror.nil? @sinatra_root = options[:sinatra_root] ? options[:sinatra_root] : File.expand_path('../..', __FILE__) @@mirror = Mirror.new @@mirror.init_servers! if options[:init_servers] @@mirror end
sinatra_root()
click to toggle source
# File lib/magic_mirror.rb, line 33 def self.sinatra_root @sinatra_root end
sinatra_root=(value)
click to toggle source
# File lib/magic_mirror.rb, line 29 def self.sinatra_root=(value) @sinatra_root = value end