module Sequel::Plugins::SplitValues::InstanceMethods
Public Instance Methods
[](k)
click to toggle source
If there isn't an entry in the values hash, but there is a noncolumn_values hash, look in that hash for the value.
Calls superclass method
# File lib/sequel/plugins/split_values.rb, line 47 def [](k) super || (@noncolumn_values[k] if !@values.has_key?(k) && @noncolumn_values) end
split_noncolumn_values()
click to toggle source
Check all entries in the values hash. If any of the keys are not columns, move the entry into the noncolumn_values hash.
# File lib/sequel/plugins/split_values.rb, line 53 def split_noncolumn_values @values.keys.each do |k| unless columns.include?(k) (@noncolumn_values ||= {})[k] = @values.delete(k) end end self end