class Sketchup::ClassificationSchema
The ClassificationSchema
class represent schemas loaded in the model.
@version SketchUp 2015
Public Instance Methods
<=>(schema2)
click to toggle source
The <=> method is used to compare two ClassificationSchema
objects for sorting. The comparison is done based on the schema name.
@example
schema1 = Sketchup.active_model.classifications["IFC 2x3"] schema2 = Sketchup.active_model.classifications["gbXML"] # Returns -1 result = schema1 <=> schema2 # Returns an array of sorted schemas. schemas = Sketchup.active_model.classifications.to_a.sort
@param schema2
The second schema in the comparison.
@return Integer - -1 if schema1 is less then schema2. 1 if
schema1 is greater than schema2, 0 if the schemas are equal.
@version SketchUp 2015
# File lib/sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb, line 34 def <=>(schema2) end
name()
click to toggle source
The name method returns the name of the schema.
@example
Sketchup.active_model.classifications.each { |schema| puts schema.name }
@return String
- containing the schema name.
@version SketchUp 2015
# File lib/sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb, line 47 def name end
namespace()
click to toggle source
The namespace method returns the namespace of the schema.
@example
Sketchup.active_model.classifications.each { |schema| puts schema.namespace }
@return String
- containing the schema namespace.
@version SketchUp 2015
# File lib/sketchup-api-stubs/stubs/Sketchup/ClassificationSchema.rb, line 60 def namespace end