YAMLConverter

Converts hash to/from YAML

Constants

Methods

.convert_type

def convert_type
  Hash
end

.converted?

def converted?(value)
  value.is_a?(db_type)
end

.db_type

def db_type
  String
end

.to_db

def to_db(value)
  Psych.dump(value)
end

.to_ruby

def to_ruby(value)
  Psych.load(value)
end