(Moved to the Ruby API category.)
@anthonysmithemail, regarding your monkey patch example:
class String
def numeric?
Float(self) != nil rescue false
end
end
… is an absolute NO NO.
DO NOT modify Ruby nor API base classes !
SketchUp Ruby is a shared environment.
Instead use refinements:
http://ruby-doc.org/core-2.0.0/doc/syntax/refinements_rdoc.html
ie:
module Smith::Refinements
refine String do
def numeric?
Float(self) != nil rescue false
end
end
end
using Smith::Refinements
module Smith
# Write a method / class here that uses
# the file-local String class refinement.
end