ModraUp Ruby API Documentation Ruby API Reference

Module: Kernel

Instance Method Summary # collapse

Instance Method Details

file_loaded?(path) ⇒ Boolean

Does this path already have a record of being Kernel#file_loaded. Implemented in app/resources/Tools/modraup.rb (for compatibility with sketchup.rb). Compare using $loaded_files (downcase).

Parameters:

  • path (String)

Returns:

  • (Boolean)

Examples:

file_loaded?("os3d_demo_ui.rb")

file_loaded(path) ⇒ Array, nil

Record that the plugin file has been loaded to avoid redundant menu entries and other side effects. If it has already been recorded, no further additions will be made.

Parameters:

  • path (String)

Returns:

  • (Array<String>, nil)

Examples:

file_loaded("os3d_demo_ui.rb")