Object
Base class for all column types
Returns column type class that correspond to given column type string
# File lib/rbase/columns.rb, line 17 def self.column_for(type) throw "Unknown column type '#{type}'" unless @@types.has_key?(type) @@types[type] end
Assigns column type string to current class
# File lib/rbase/columns.rb, line 11 def self.column_type(type) @type = type @@types[type] = self end
# File lib/rbase/columns.rb, line 49 def attach_to(table) @table = table end
# File lib/rbase/columns.rb, line 63 def inspect "#{name}(type=#{type}, size=#{size})" end
Packs column value for storing it in XBase file.
# File lib/rbase/columns.rb, line 54 def pack(value) throw "Not implemented" end
Generated with the Darkfish Rdoc Generator 2.