0dc4d46fa3
* Move icons to img folder * Rename built folder name from html to vue_ui * Rename main to bootstrap * Remove unnecessary module for SpeckleSystems * Replace dialog with App-View-Command design * Fix rubocop issues - disable to_native and to_speckle for now, they will be handled in different PR
23 lines
613 B
Ruby
23 lines
613 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Speckle connector module to enable multiplayer mode ON!
|
|
module SpeckleConnector
|
|
# from thomthom
|
|
# https://github.com/thomthom/true-bend/blob/master/src/tt_truebend/debug.rb
|
|
|
|
# @note Debug method to reload the plugin.
|
|
#
|
|
# @example
|
|
# SpeckleConnector.reload
|
|
#
|
|
# @return [Integer] Number of files reloaded.
|
|
# rubocop:disable SketchupSuggestions/FileEncoding
|
|
def self.reload
|
|
load(__FILE__)
|
|
pattern = File.join(__dir__, '**/*.rb')
|
|
Dir.glob(pattern).each { |file| load(file) }
|
|
.size
|
|
end
|
|
# rubocop:enable SketchupSuggestions/FileEncoding
|
|
end
|