Class: Sketchup::OptionsManager
| Relationships | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Instance Chain:
self,
Enumerable
|
|
| Inherits: | Object |
Overview
The OptionsManager class manages various kinds of OptionsProviders on a Model.
Instance Method Summary
-
#[](index) ⇒ Object
The [] method is used to get an option provider by name or index.
- #count ⇒ Object
-
#each {|provider| ... } ⇒ nil
The #each method is used to iterate through options providers.
-
#keys ⇒ Object
The keys method is used to get a list of keys in the
OptionsManager. - #length ⇒ Integer
-
#size ⇒ Integer
The #size method returns the number of
OptionsProviderobjects inside thisOptionsManager.
Instance Method Details
#[](index) ⇒ Object
#[](name) ⇒ Object
Object
#[](name) ⇒ Object
The [] method is used to get an option provider by name or index.
For example, to get the UnitsOptions on the Model, you could use the command:
#count ⇒ Object
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 {|provider| ... } ⇒ nil
The #each method is used to iterate through options providers.
#keys ⇒ Object
The keys method is used to get a list of keys in the OptionsManager.
#length ⇒ Integer
The #length method is an alias of #size.
#size ⇒ Integer
The #size method returns the number of OptionsProvider objects inside this OptionsManager.