Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/eedb/ext.rb

Instance Method Summary collapse

Instance Method Details

#to_mysql_optionsObject



2
3
4
5
6
7
8
9
10
# File 'lib/eedb/ext.rb', line 2

def to_mysql_options
  collect do |k, v|
    unless v.empty?
      "--#{k}=\"#{v}\""
    else
      nil
    end
  end.reject { |a| a.nil? }.join(" ")
end