sketchup-api-stubs 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/SketchUp/Geom/BoundingBox.rb +17 -20
  3. data/SketchUp/Geom/Bounds2d.rb +172 -0
  4. data/SketchUp/Geom/LatLong.rb +31 -16
  5. data/SketchUp/Geom/OrientedBounds2d.rb +102 -0
  6. data/SketchUp/Geom/Point2d.rb +365 -0
  7. data/SketchUp/Geom/Point3d.rb +121 -110
  8. data/SketchUp/Geom/PolygonMesh.rb +30 -21
  9. data/SketchUp/Geom/Transformation.rb +8 -4
  10. data/SketchUp/Geom/Transformation2d.rb +125 -0
  11. data/SketchUp/Geom/UTM.rb +43 -37
  12. data/SketchUp/Geom/Vector2d.rb +497 -0
  13. data/SketchUp/Geom/Vector3d.rb +143 -131
  14. data/SketchUp/Layout.rb +25 -0
  15. data/SketchUp/Layout/AngularDimension.rb +569 -0
  16. data/SketchUp/Layout/AutoTextDefinition.rb +417 -0
  17. data/SketchUp/Layout/AutoTextDefinitions.rb +186 -0
  18. data/SketchUp/Layout/ConnectionPoint.rb +70 -0
  19. data/SketchUp/Layout/Document.rb +458 -0
  20. data/SketchUp/Layout/Ellipse.rb +29 -0
  21. data/SketchUp/Layout/Entities.rb +155 -0
  22. data/SketchUp/Layout/Entity.rb +363 -0
  23. data/SketchUp/Layout/FormattedText.rb +349 -0
  24. data/SketchUp/Layout/Grid.rb +131 -0
  25. data/SketchUp/Layout/Group.rb +261 -0
  26. data/SketchUp/Layout/Image.rb +86 -0
  27. data/SketchUp/Layout/Label.rb +371 -0
  28. data/SketchUp/Layout/Layer.rb +222 -0
  29. data/SketchUp/Layout/LayerInstance.rb +128 -0
  30. data/SketchUp/Layout/Layers.rb +232 -0
  31. data/SketchUp/Layout/LinearDimension.rb +563 -0
  32. data/SketchUp/Layout/LockedEntityError.rb +10 -0
  33. data/SketchUp/Layout/LockedLayerError.rb +11 -0
  34. data/SketchUp/Layout/Page.rb +187 -0
  35. data/SketchUp/Layout/PageInfo.rb +393 -0
  36. data/SketchUp/Layout/Pages.rb +216 -0
  37. data/SketchUp/Layout/Path.rb +326 -0
  38. data/SketchUp/Layout/Rectangle.rb +174 -0
  39. data/SketchUp/Layout/SketchUpModel.rb +522 -0
  40. data/SketchUp/Layout/Style.rb +1520 -0
  41. data/SketchUp/Layout/Table.rb +290 -0
  42. data/SketchUp/Layout/TableCell.rb +149 -0
  43. data/SketchUp/Layout/TableColumn.rb +139 -0
  44. data/SketchUp/Layout/TableRow.rb +135 -0
  45. data/SketchUp/Sketchup/Animation.rb +7 -4
  46. data/SketchUp/Sketchup/ArcCurve.rb +10 -10
  47. data/SketchUp/Sketchup/AttributeDictionaries.rb +13 -4
  48. data/SketchUp/Sketchup/AttributeDictionary.rb +12 -12
  49. data/SketchUp/Sketchup/Color.rb +68 -78
  50. data/SketchUp/Sketchup/ComponentDefinition.rb +60 -60
  51. data/SketchUp/Sketchup/ComponentInstance.rb +57 -55
  52. data/SketchUp/Sketchup/DefinitionList.rb +34 -17
  53. data/SketchUp/Sketchup/Drawingelement.rb +19 -21
  54. data/SketchUp/Sketchup/Edge.rb +22 -24
  55. data/SketchUp/Sketchup/Entities.rb +173 -162
  56. data/SketchUp/Sketchup/Entity.rb +71 -55
  57. data/SketchUp/Sketchup/Face.rb +45 -44
  58. data/SketchUp/Sketchup/Group.rb +47 -49
  59. data/SketchUp/Sketchup/Image.rb +16 -0
  60. data/SketchUp/Sketchup/ImageRep.rb +226 -0
  61. data/SketchUp/Sketchup/InstancePath.rb +13 -13
  62. data/SketchUp/Sketchup/Layer.rb +15 -17
  63. data/SketchUp/Sketchup/Material.rb +40 -30
  64. data/SketchUp/Sketchup/Materials.rb +40 -22
  65. data/SketchUp/Sketchup/Menu.rb +5 -5
  66. data/SketchUp/Sketchup/Model.rb +230 -228
  67. data/SketchUp/Sketchup/Page.rb +32 -0
  68. data/SketchUp/Sketchup/Pages.rb +3 -4
  69. data/SketchUp/Sketchup/RenderingOptions.rb +21 -16
  70. data/SketchUp/Sketchup/SectionPlane.rb +64 -0
  71. data/SketchUp/Sketchup/Selection.rb +20 -28
  72. data/SketchUp/Sketchup/ShadowInfo.rb +14 -14
  73. data/SketchUp/Sketchup/Text.rb +24 -26
  74. data/SketchUp/Sketchup/Texture.rb +28 -12
  75. data/SketchUp/Sketchup/Vertex.rb +14 -11
  76. data/SketchUp/Sketchup/View.rb +126 -116
  77. data/SketchUp/UI/Command.rb +17 -17
  78. data/SketchUp/UI/HtmlDialog.rb +8 -5
  79. data/SketchUp/UI/Notification.rb +1 -1
  80. data/SketchUp/UI/Toolbar.rb +13 -14
  81. data/SketchUp/UI/WebDialog.rb +55 -59
  82. data/SketchUp/_top_level.rb +139 -27
  83. data/SketchUp/{Array.rb → array.rb} +167 -30
  84. data/SketchUp/{Geom.rb → geom.rb} +9 -7
  85. data/SketchUp/{LanguageHandler.rb → languagehandler.rb} +15 -15
  86. data/SketchUp/{Length.rb → length.rb} +15 -15
  87. data/SketchUp/{Numeric.rb → numeric.rb} +19 -19
  88. data/SketchUp/sketchup.rb +167 -156
  89. data/SketchUp/{SketchupExtension.rb → sketchupextension.rb} +27 -27
  90. data/SketchUp/{String.rb → string.rb} +1 -1
  91. data/SketchUp/ui.rb +113 -87
  92. metadata +46 -9
@@ -129,6 +129,38 @@ class Sketchup::Page < Sketchup::Entity
129
129
  def hidden_entities
130
130
  end
131
131
 
132
+ # The {#include_in_animation=} method controls whether the page should be
133
+ # included when exporting an animation from the model.
134
+ #
135
+ # @example Turn off animation for all pages.
136
+ # model = Sketchup.active_model
137
+ # model.pages.each { |page|
138
+ # page.include_in_animation = false
139
+ # }
140
+ #
141
+ # @param [Boolean] include
142
+ #
143
+ # @return [Sketchup::Page]
144
+ #
145
+ # @version SketchUp 2018
146
+ def include_in_animation=(include)
147
+ end
148
+
149
+ # The {#include_in_animation?} method determines whether the page should be
150
+ # included when exporting an animation from the model.
151
+ #
152
+ # @example Toggle inclusion in animation for all pages.
153
+ # model = Sketchup.active_model
154
+ # in_animation = model.pages.select { |page| page.include_in_animation? }
155
+ #
156
+ # @return [Boolean]
157
+ #
158
+ # @return [Boolean]
159
+ #
160
+ # @version SketchUp 2018
161
+ def include_in_animation?
162
+ end
163
+
132
164
  # The label method retrieves the label for a page from the page tab.
133
165
  #
134
166
  # @example
@@ -201,16 +201,15 @@ class Sketchup::Pages < Sketchup::Entity
201
201
  def each
202
202
  end
203
203
 
204
- # The erase method is used to remove a page from the collection.
204
+ # The {#erase} method is used to remove a page from the collection.
205
205
  #
206
206
  # @example
207
207
  # page = Sketchup.active_model.pages.add('Hello World')
208
208
  # Sketchup.active_model.pages.erase(page)
209
209
  #
210
- # @param page
211
- # The page you wish to delete.
210
+ # @param [Sketchup::Page] page
212
211
  #
213
- # @return true if successful, false if unsuccessful.
212
+ # @return [Boolean]
214
213
  #
215
214
  # @version SketchUp 6.0
216
215
  def erase(page)
@@ -75,6 +75,10 @@
75
75
  # - +DrawBackEdges+
76
76
  # - +SectionCutDrawEdges+
77
77
  #
78
+ # Added in SketchUp 2018:
79
+ # - +SectionCutFilled+
80
+ # - +SectionDefaultFillColor+
81
+ #
78
82
  # @version SketchUp 6.0
79
83
  class Sketchup::RenderingOptions < Sketchup::Entity
80
84
 
@@ -134,8 +138,10 @@ class Sketchup::RenderingOptions < Sketchup::Entity
134
138
  ROPSetProfilesOnlyEdges = nil # Stub value.
135
139
  ROPSetRenderMode = nil # Stub value.
136
140
  ROPSetSectionActiveColor = nil # Stub value.
141
+ ROPSetSectionCutFilled = nil # Stub value.
137
142
  ROPSetSectionCutWidth = nil # Stub value.
138
143
  ROPSetSectionDefaultCutColor = nil # Stub value.
144
+ ROPSetSectionDefaultFillColor = nil # Stub value.
139
145
  ROPSetSectionDisplayMode = nil # Stub value.
140
146
  ROPSetSectionInactiveColor = nil # Stub value.
141
147
  ROPSetSkyColor = nil # Stub value.
@@ -153,7 +159,7 @@ class Sketchup::RenderingOptions < Sketchup::Entity
153
159
  # puts key
154
160
  # }
155
161
  #
156
- # @return nil
162
+ # @return [nil]
157
163
  #
158
164
  # @version SketchUp 6.0
159
165
  #
@@ -166,7 +172,7 @@ class Sketchup::RenderingOptions < Sketchup::Entity
166
172
  # @example
167
173
  # keys = Sketchup.active_model.rendering_options.keys
168
174
  #
169
- # @return keys - an array of keys
175
+ # @return [Array<String>] an array of keys
170
176
  #
171
177
  # @version SketchUp 6.0
172
178
  def self.keys
@@ -174,16 +180,15 @@ class Sketchup::RenderingOptions < Sketchup::Entity
174
180
 
175
181
  # Instance Methods
176
182
 
177
- # The set value [] method is used to get the value in the array of
178
- # rendering options.
183
+ # The {#[]} method is used to get the value of a rendering option.
179
184
  #
180
185
  # @example
181
186
  # result = Sketchup.active_model.rendering_options["DisplayInstanceAxes"]
182
187
  #
183
- # @param key
184
- # The key of the rendering option value to set.
188
+ # @param [String] key
189
+ # The key of the rendering option value to get.
185
190
  #
186
- # @return value - the value that was found.
191
+ # @return [Object, nil]
187
192
  #
188
193
  # @version SketchUp 6.0
189
194
  def [](key)
@@ -195,13 +200,13 @@ class Sketchup::RenderingOptions < Sketchup::Entity
195
200
  # @example
196
201
  # Sketchup.active_model.rendering_options["DisplayInstanceAxes"] = false
197
202
  #
198
- # @param key
203
+ # @param [String] key
199
204
  # The key of the rendering option value to set.
200
205
  #
201
- # @param value
206
+ # @param [Object] value
202
207
  # The value to be set.
203
208
  #
204
- # @return value - the value that was set
209
+ # @return [Object] the value that was set
205
210
  #
206
211
  # @version SketchUp 6.0
207
212
  def []=(key, value)
@@ -213,10 +218,10 @@ class Sketchup::RenderingOptions < Sketchup::Entity
213
218
  # observer = Sketchup::RenderingOptionsObserver.new # Dummy observer.
214
219
  # result = Sketchup.active_model.rendering_options.add_observer(observer)
215
220
  #
216
- # @param observer
221
+ # @param [Object] observer
217
222
  # An observer.
218
223
  #
219
- # @return true if successful, false if unsuccessful.
224
+ # @return [Boolean] true if successful, false if unsuccessful.
220
225
  #
221
226
  # @version SketchUp 6.0
222
227
  def add_observer(observer)
@@ -265,7 +270,7 @@ class Sketchup::RenderingOptions < Sketchup::Entity
265
270
  # puts key
266
271
  # }
267
272
  #
268
- # @return nil
273
+ # @return [nil]
269
274
  #
270
275
  # @version SketchUp 6.0
271
276
  #
@@ -293,7 +298,7 @@ class Sketchup::RenderingOptions < Sketchup::Entity
293
298
  # @example
294
299
  # keys = Sketchup.active_model.rendering_options.keys
295
300
  #
296
- # @return keys - an array of keys
301
+ # @return [Array<String>] an array of keys
297
302
  #
298
303
  # @version SketchUp 6.0
299
304
  def keys
@@ -323,10 +328,10 @@ class Sketchup::RenderingOptions < Sketchup::Entity
323
328
  # options.add_observer(observer)
324
329
  # result = options.remove_observer(observer)
325
330
  #
326
- # @param observer
331
+ # @param [Object] observer
327
332
  # An observer.
328
333
  #
329
- # @return true if successful, false if unsuccessful.
334
+ # @return [Boolean] true if successful, false if unsuccessful.
330
335
  #
331
336
  # @version SketchUp 6.0
332
337
  def remove_observer(observer)
@@ -66,6 +66,37 @@ class Sketchup::SectionPlane < Sketchup::Drawingelement
66
66
  def get_plane
67
67
  end
68
68
 
69
+ # The {#name} method is used to retrieve the name of the section plane.
70
+ #
71
+ # @example
72
+ # model = Sketchup.active_model
73
+ # entities = model.active_entities
74
+ # # Grab the first section plane from the model.
75
+ # section_plane = entities.grep(Sketchup::SectionPlane).first
76
+ # name = section_plane.name
77
+ #
78
+ # @return [String]
79
+ #
80
+ # @version SketchUp 2018
81
+ def name
82
+ end
83
+
84
+ # The {#name=} method is used to set the name of a section plane.
85
+ #
86
+ # @example
87
+ # model = Sketchup.active_model
88
+ # entities = Sketchup.active_model.entities
89
+ # # Grab the first section plane from the model.
90
+ # section_plane = entities.grep(Sketchup::SectionPlane).first
91
+ # section_plane.name = "my section plane"
92
+ #
93
+ # @param [String] name
94
+ # The new name for the section plane object.
95
+ #
96
+ # @version SketchUp 2018
97
+ def name=(name)
98
+ end
99
+
69
100
  # The set_plane method is used to set the plane that the section plane is
70
101
  # on.
71
102
  #
@@ -85,4 +116,37 @@ class Sketchup::SectionPlane < Sketchup::Drawingelement
85
116
  def set_plane(plane)
86
117
  end
87
118
 
119
+ # The {#symbol} method is used to retrieve the symbol of the section plane.
120
+ #
121
+ # @example
122
+ # model = Sketchup.active_model
123
+ # entities = model.active_entities
124
+ # # Grab the first section plane from the model.
125
+ # section_plane = entities.grep(Sketchup::SectionPlane).first
126
+ # symbol = section_plane.symbol
127
+ #
128
+ # @return [String]
129
+ #
130
+ # @version SketchUp 2018
131
+ def symbol
132
+ end
133
+
134
+ # The {#symbol=} method is used to set the symbol of a section plane.
135
+ #
136
+ # @example
137
+ # model = Sketchup.active_model
138
+ # entities = Sketchup.active_model.entities
139
+ # # Grab the first section plane from the model.
140
+ # section_plane = entities.grep(Sketchup::SectionPlane).first
141
+ # section_plane.symbol = "AB1"
142
+ #
143
+ # @note The symbol must be three characters or less.
144
+ #
145
+ # @param [String] symbol
146
+ # The new symbol for the section plane object.
147
+ #
148
+ # @version SketchUp 2018
149
+ def symbol=(symbol)
150
+ end
151
+
88
152
  end
@@ -67,10 +67,10 @@ class Sketchup::Selection
67
67
  # entity = entities[0]
68
68
  # status = selection.add entity
69
69
  #
70
- # @param ents_or_array
70
+ # @param [Array<Sketchup::Entity>] ents_or_array
71
71
  # List or Array of Entity objects.
72
72
  #
73
- # @return status - the number of Entity objects added
73
+ # @return [Integer] the number of Entity objects added
74
74
  #
75
75
  # @version SketchUp 6.0
76
76
  def add(ents_or_array)
@@ -82,10 +82,10 @@ class Sketchup::Selection
82
82
  # selection = Sketchup.active_model.selection
83
83
  # status = selection.add_observer observer
84
84
  #
85
- # @param observer
85
+ # @param [Object] observer
86
86
  # An observer.
87
87
  #
88
- # @return true if successful, false if unsuccessful.
88
+ # @return [Boolean] true if successful, false if unsuccessful.
89
89
  #
90
90
  # @version SketchUp 6.0
91
91
  def add_observer(observer)
@@ -119,7 +119,7 @@ class Sketchup::Selection
119
119
  # UI.messagebox "Ready to Clear"
120
120
  # selection.clear
121
121
  #
122
- # @return nil
122
+ # @return [nil]
123
123
  #
124
124
  # @version SketchUp 6.0
125
125
  def clear
@@ -171,11 +171,11 @@ class Sketchup::Selection
171
171
  # @example
172
172
  # selection.each { |entity| UI.messagebox(entity) }
173
173
  #
174
- # @return nil
174
+ # @return [nil]
175
175
  #
176
176
  # @version SketchUp 6.0
177
177
  #
178
- # @yield [entity] A variable that will hold each Entity object as they
178
+ # @yield [Sketchup::Entity] A variable that will hold each Entity object as they
179
179
  # are found.
180
180
  def each
181
181
  end
@@ -187,8 +187,7 @@ class Sketchup::Selection
187
187
  # status = selection.add entity
188
188
  # status = selection.empty
189
189
  #
190
- # @return status - true if the selection is empty. False if the
191
- # selection is not empty.
190
+ # @return [Boolean]
192
191
  #
193
192
  # @return [Boolean]
194
193
  #
@@ -206,7 +205,7 @@ class Sketchup::Selection
206
205
  # status = selection.add entity
207
206
  # entity = selection.first
208
207
  #
209
- # @return entity - the first selected Entity object if successful
208
+ # @return [Sketchup::Entity] the first selected Entity object if successful
210
209
  #
211
210
  # @version SketchUp 6.0
212
211
  def first
@@ -241,9 +240,7 @@ class Sketchup::Selection
241
240
  # selection.add entity
242
241
  # status = selection.is_curve?
243
242
  #
244
- # @return status - true if the selection contains all edges that
245
- # belong to a single curve. False if the selection does
246
- # not contain all edges that belong to a single curve.
243
+ # @return [Boolean]
247
244
  #
248
245
  # @return [Boolean]
249
246
  #
@@ -258,10 +255,7 @@ class Sketchup::Selection
258
255
  # selection.add entity
259
256
  # status = selection.is_surface
260
257
  #
261
- # @return status - true if the selection contains all faces that
262
- # belong to a single curved surface. False if the
263
- # selection does not contain all faces that belong to a
264
- # single curved surface.
258
+ # @return [Boolean]
265
259
  #
266
260
  # @return [Boolean]
267
261
  #
@@ -290,7 +284,7 @@ class Sketchup::Selection
290
284
  # @example
291
285
  # model = selection.model
292
286
  #
293
- # @return model - the model that includes the selection if
287
+ # @return [Sketchup::Model] the model that includes the selection if
294
288
  # successful
295
289
  #
296
290
  # @version SketchUp 6.0
@@ -331,10 +325,10 @@ class Sketchup::Selection
331
325
  # entity = entities[0]
332
326
  # status = selection.add entity
333
327
  #
334
- # @param ents_or_array
328
+ # @param [Array<Sketchup::Entity>] ents_or_array
335
329
  # List or Array of Entity objects.
336
330
  #
337
- # @return status - the number of Entity objects removed
331
+ # @return [Integer] the number of Entity objects removed
338
332
  #
339
333
  # @version SketchUp 6.0
340
334
  def remove(ents_or_array)
@@ -347,10 +341,10 @@ class Sketchup::Selection
347
341
  # selection = Sketchup.active_model.selection
348
342
  # status = object.remove_observer observer
349
343
  #
350
- # @param observer
344
+ # @param [Object] observer
351
345
  # An observer.
352
346
  #
353
- # @return true if successful, false if unsuccessful.
347
+ # @return [Boolean] true if successful, false if unsuccessful.
354
348
  #
355
349
  # @version SketchUp 6.0
356
350
  def remove_observer(observer)
@@ -364,7 +358,7 @@ class Sketchup::Selection
364
358
  # UI.messagebox "Ready to remove item from selection set"
365
359
  # entity = selection.shift
366
360
  #
367
- # @return entity - the first Entity object in the selection set
361
+ # @return [Sketchup::Entity] the first Entity object in the selection set
368
362
  # if successful
369
363
  #
370
364
  # @version SketchUp 6.0
@@ -380,9 +374,7 @@ class Sketchup::Selection
380
374
  # @example
381
375
  # status = selection.single_object
382
376
  #
383
- # @return status - true if the selection contains a single
384
- # object. False if the selection does not contain a
385
- # single object.
377
+ # @return [Boolean]
386
378
  #
387
379
  # @return [Boolean]
388
380
  #
@@ -426,10 +418,10 @@ class Sketchup::Selection
426
418
  # entity = entities[0]
427
419
  # status = selection.add entity
428
420
  #
429
- # @param ents_or_array
421
+ # @param [Array<Sketchup::Entity>] ents_or_array
430
422
  # List or Array of Entity objects.
431
423
  #
432
- # @return status - the number of Entity objects changed
424
+ # @return [Integer] the number of Entity objects changed
433
425
  #
434
426
  # @version SketchUp 6.0
435
427
  def toggle(ents_or_array)
@@ -52,7 +52,7 @@ class Sketchup::ShadowInfo < Sketchup::Entity
52
52
  # @example
53
53
  # shadowinfo.each_key { |key| UI.messagebox(key) }
54
54
  #
55
- # @return nil
55
+ # @return [nil]
56
56
  #
57
57
  # @version SketchUp 6.0
58
58
  #
@@ -66,7 +66,7 @@ class Sketchup::ShadowInfo < Sketchup::Entity
66
66
  # @example
67
67
  # keys = Sketchup::ShadowInfo.keys
68
68
  #
69
- # @return keys - an array of keys
69
+ # @return [Array<String>] an array of keys
70
70
  #
71
71
  # @version SketchUp 6.0
72
72
  def self.keys
@@ -79,10 +79,10 @@ class Sketchup::ShadowInfo < Sketchup::Entity
79
79
  # @example
80
80
  # value = shadowinfo["key"]
81
81
  #
82
- # @param key
82
+ # @param [String] key
83
83
  # The key of the shadowinfo value to retrieve.
84
84
  #
85
- # @return value - the value that is retrieved.
85
+ # @return [Object, nil] the value that is retrieved.
86
86
  #
87
87
  # @version SketchUp 6.0
88
88
  def [](key)
@@ -99,13 +99,13 @@ class Sketchup::ShadowInfo < Sketchup::Entity
99
99
  # value = shadowinfo["City"]="Denver, CO"
100
100
  # UI.messagebox value
101
101
  #
102
- # @param key
102
+ # @param [String] key
103
103
  # The key of the shadowinfo value to set.
104
104
  #
105
- # @param value
105
+ # @param [Object] value
106
106
  # The value to be set.
107
107
  #
108
- # @return value - the value that was set if successful, or false
108
+ # @return [Object] the value that was set if successful, or false
109
109
  # if unsuccessful.
110
110
  #
111
111
  # @version SketchUp 6.0
@@ -117,10 +117,10 @@ class Sketchup::ShadowInfo < Sketchup::Entity
117
117
  # @example
118
118
  # status = object.add_observer observer
119
119
  #
120
- # @param observer
120
+ # @param [Object] observer
121
121
  # An observer.
122
122
  #
123
- # @return true if successful, false if unsuccessful.
123
+ # @return [Boolean] true if successful, false if unsuccessful.
124
124
  #
125
125
  # @version SketchUp 6.0
126
126
  def add_observer(observer)
@@ -132,7 +132,7 @@ class Sketchup::ShadowInfo < Sketchup::Entity
132
132
  # shadow_info = Sketchup.active_model.shadow_info
133
133
  # number = shadow_info.count
134
134
  #
135
- # @return integer
135
+ # @return [Integer]
136
136
  #
137
137
  # @version SketchUp 2014
138
138
  def count
@@ -167,7 +167,7 @@ class Sketchup::ShadowInfo < Sketchup::Entity
167
167
  # @example
168
168
  # shadowinfo.each_key { |key| UI.messagebox(key) }
169
169
  #
170
- # @return nil
170
+ # @return [nil]
171
171
  #
172
172
  # @version SketchUp 6.0
173
173
  #
@@ -204,7 +204,7 @@ class Sketchup::ShadowInfo < Sketchup::Entity
204
204
  # @example
205
205
  # keys = Sketchup::ShadowInfo.keys
206
206
  #
207
- # @return keys - an array of keys
207
+ # @return [Array<String>] an array of keys
208
208
  #
209
209
  # @version SketchUp 6.0
210
210
  def keys
@@ -231,10 +231,10 @@ class Sketchup::ShadowInfo < Sketchup::Entity
231
231
  # @example
232
232
  # status = object.remove_observer observer
233
233
  #
234
- # @param observer
234
+ # @param [Object] observer
235
235
  # An observer.
236
236
  #
237
- # @return true if successful, false if unsuccessful.
237
+ # @return [Boolean] true if successful, false if unsuccessful.
238
238
  #
239
239
  # @version SketchUp 6.0
240
240
  def remove_observer(observer)