SQLObject
Class representing SQL columns
# File lib/sqlobject.rb, line 103 def initialize ( col = nil ) @name = col.is_a?( SQLColumn ) ? col.name : col #_prepareName( col ) end
# File lib/sqlobject.rb, line 108 def to_s @name.to_s end
Prepare column name (remove all non-alphanumeric/underscore characters)
# File lib/sqlobject.rb, line 117 def _prepareName ( name ) name.to_s.gsub /[\W]/, '' end
[Validate]
Generated with the Darkfish Rdoc Generator 2.