Appendix B
Ruby Class and Method Reference
The following is a selection of the most commonly used Ruby classes and methods as included with the current version of SketchUp (Version 8, Maintenance Release 3). Some contain SketchUp-specific methods.
Array (Parent: Object) .& .* .+ .- .<< .[] .[]= .all? .any? .assoc .at .clear .collect .collect! .compact .compact! .concat .cross .delete .delete_at .delete_if .detect .distance .distance_to_line .distance_to_plane .dot .each .each_index .each_with_index .empty? .entries .fetch .fill .find .find_all .first .flatten .flatten! .get_bounds_2d .get_point2d .get_point3d .grep .index .indexes .indices .inject .insert .join .last .length .map .map! .max .member? .min .move .nitems .normalize .normalize! .occlusion .offset .offset! .offsetPoints .on_line? .on_plane? .pack .partition .pop .project_to_line .project_to_plane .push .rassoc .reject .reject! .replace .reverse .reverse! .reverse_each .rindex .round_to .sameConstraint? .select .shift .size .slice .slice! .sort .sort! .sort_by .to_ary .to_ptr .transform .transform! .transpose .uniq .uniq! .uniq_LDD .unshift .values_at .vector_to .x .x= .y .y= .z .z= .zip .|
File (Parent: IO) .<< .all? .any? .atime .binmode .chmod .chown .close .close_read .close_write .closed? .collect .ctime .detect .each .each_byte .each_line .each_with_index .entries .eof .eof? .fcntl .fileno .find .find_all .flock .flush .fsync .getc .gets .grep .inject .ioctl .isatty .lineno .lineno= .lstat .map .max .member? .min ...