Class: Sketchup::ExtensionsManager
Relationships | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
Enumerable
|
|
Inherits: | Object |
Overview
The ExtensionsManager class provides a way of accessing the SketchupExtensions that have been registered via the ::Sketchup
.register_extension method.
There is only one ExtensionsManager
available. You access it via the ::Sketchup
.extensions method.
Instance Method Summary
-
#[](index_or_name) ⇒ SketchupExtension?
The [] method is used to get an extension by name, index or ID.
- #count ⇒ Integer
-
#each {|extension| ... } ⇒ nil
The #each method is used to iterate through extensions.
-
#keys ⇒ Object
The keys method is used to get a list of keys in the
ExtensionsManager
, which are the same as the names of the extensions. -
#length ⇒ Integer
The #length method returns the number of
::SketchupExtension
objects inside thisExtensionsManager
. - #size ⇒ Integer
Instance Method Details
#[](index_or_name) ⇒ SketchupExtension?
Index starts at 1.
The [] method is used to get an extension by name, index or ID.
#count ⇒ Integer
Since SketchUp 2014 the count method is inherited from Ruby’s Enumerable
mix-in module. Prior to that the #count
method is an alias for #length.
#each {|extension| ... } ⇒ nil
The #each
method is used to iterate through extensions.
#keys ⇒ Object
The keys method is used to get a list of keys in the ExtensionsManager
, which are the same as the names of the extensions.
#length ⇒ Integer
The #length
method returns the number of ::SketchupExtension
objects inside this ExtensionsManager
.
#size ⇒ Integer
The #size
method is an alias of #length.