class String

The String class contains a method used to parse a string as a length value. All string arguments in Ruby API expect utf-8 strings.

@version SketchUp 6.0

Public Instance Methods

to_l() click to toggle source

The to_l method is used to convert a string to a length. The returned length is expressed in the Model units.

@example

length = "5'".to_l

@return [Length] the length value

@version SketchUp 6.0

# File lib/sketchup-api-stubs/stubs/string.rb, line 21
def to_l
end