Main class for all objects. All other entities should inherit this class.
Convert values to the corresponding internal data types
# File lib/sqlobject.rb, line 52 def self.get ( *list ) list.map! do |expr| if expr.is_a? SQLObject # inline queries go in parens: if expr.class == SQLConstructor || expr.is_a?( SQLConstructor::GenericQuery ) expr.inline = true end expr elsif expr.is_a? Array or expr.is_a? Range SQLValList.new *expr.to_a elsif expr.is_a? Hash SQLAliasedList.new expr elsif expr.is_a? Symbol SQLColumn.new( expr ) else SQLValue.new( expr ) end end # Return array or scalar, depending on the number of function arguments list.length == 1 ? list[0] : list end
Set object’s name for further named processing
# File lib/sqlobject.rb, line 22 def _name ( name ) @name = name.to_s return self end
attr_reader for @string, actually an alias to to_s().
# File lib/sqlobject.rb, line 38 def _string to_s end
Generated with the Darkfish Rdoc Generator 2.