Class: Sketchup::OptionsManager
- Inherits:
-
Object
- Object
- Sketchup::OptionsManager
- Includes:
- Enumerable
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb
Overview
The OptionsManager class manages various kinds of OptionsProviders on a Model.
Instance Method Summary collapse
-
#[](arg) ⇒ Object
The [] method is used to get an option provider by name or index.
-
#count ⇒ Object
Integer - number of OptionsProvider objects if successful.
-
#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 OptionsProvider objects inside this OptionsManager.
Instance Method Details
#[](index) ⇒ 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:
47 48 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb', line 47 def [](arg) end |
#count ⇒ Object
65 66 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb', line 65 def count end |
#each {|provider| ... } ⇒ nil
The #each method is used to iterate through options providers.
80 81 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb', line 80 def each end |
#keys ⇒ Object
The keys method is used to get a list of keys in the OptionsManager.
98 99 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb', line 98 def keys end |
#length ⇒ Integer
112 113 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb', line 112 def length end |
#size ⇒ Integer
The #size method returns the number of Sketchup::OptionsProvider objects inside this Sketchup::OptionsManager.
127 128 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb', line 127 def size end |