Module: AMS::Lib

Defined in:
RubyExtension/ams_Lib.rb,
RubyExtension/ams_Lib/main.rb

Overview

Lib contains functions for manipulating files within the library's folder.

Since:

  • 1.0.0

Constant Summary

NAME =

Since:

  • 1.0.0

'AMS Library'.freeze
VERSION =

Since:

  • 1.0.0

'3.5.0'.freeze
RELEASE_DATE =

Since:

  • 1.0.0

'July 9, 2017'.freeze
PATH =

Since:

  • 2.0.0

path.freeze
BASE =

Since:

  • 2.0.0

base.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.extensionSketchupExtension (readonly)

Get AMS Library extension.

Returns:

  • (SketchupExtension)

Since:

  • 1.0.0

Class Method Details

.load(filename) ⇒ Boolean

Note:

The file will be reloaded if it was already loaded.

Load a specific file.

Parameters:

  • filename (String)

Returns:

  • (Boolean)

    success

Since:

  • 2.0.0

.load_allFixnum

Note:

All already loaded files will be reloaded.

Load all Ruby files within the extension's path.

Returns:

  • (Fixnum)

    The number of files loaded.

Since:

  • 2.0.0

.require(filename) ⇒ Boolean

Note:

The file will not be loaded if it was already loaded.

Require a specific file.

Parameters:

  • filename (String)

Returns:

  • (Boolean)

    success

Since:

  • 2.0.0

.require_allFixnum

Note:

All already loaded files will be ignored.

Require all Ruby files within the extension's path.

Returns:

  • (Fixnum)

    The number of files loaded.

Since:

  • 2.0.0