Class: Sketchup::LineStyles
- Includes:
- Enumerable
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb
Overview
Provides access to the different line style objects in the model.
Instance Method Summary collapse
-
#[](arg) ⇒ Sketchup::LineStyle?
The #[] method lets you retrieve a line style by name or index.
-
#at(arg) ⇒ Sketchup::LineStyle?
The #[] method lets you retrieve a line style by name or index.
-
#each ⇒ nil
The #each method is used to iterate through all the line styles.
-
#names ⇒ Array<String>
The #names method return the support line styles as strings.
-
#size ⇒ Integer
(also: #length)
The #size method returns the number of line styles that SketchUp supports.
-
#to_a ⇒ Array
The #to_a method returns an array of all the line styles.
Methods inherited from Entity
#add_observer, #attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #inspect, #model, #parent, #persistent_id, #remove_observer, #set_attribute, #to_s, #typename, #valid?
Instance Method Details
#[](name) ⇒ Sketchup::LineStyle? #[](index) ⇒ Sketchup::LineStyle?
37 38 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb', line 37 def [](arg) end |
#[](name) ⇒ Sketchup::LineStyle? #[](index) ⇒ Sketchup::LineStyle?
62 63 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb', line 62 def at(arg) end |
#each ⇒ nil
The #each method is used to iterate through all the line styles.
74 75 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb', line 74 def each end |
#names ⇒ Array<String>
The #names method return the support line styles as strings.
85 86 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb', line 85 def names end |
#size ⇒ Integer Also known as: length
The #size method returns the number of line styles that SketchUp supports.
97 98 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/LineStyles.rb', line 97 def size end |