lib/db_vcs/config_attributes.rb
# Assigns config attributes from hash.
# @param hash [Hash]
#   Example:
#     {
#       environments: ["development"],
#       pg_config: {
#         port: 5433
#       }
#     }
# @return [void]
Assigns config attributes from hash.
Assigns config attributes from hash .
def assign_attributes(hash)
      hash.each do |k, v|
        if public_methods(false).include?(:"#{k}=")
          public_send(:"#{k}=", v)
        end
      end
    end
def assign_attributes ( hash ) hash . each do | k , v | if public_methods ( false ) . include? ( :" #{ k } = " ) public_send ( :" #{ k } = " , v ) end end end
Assigns config attributes from hash.
Assigns config attributes from hash .
None
void
hash
{ environments: ["development"], pg_config: { port: 5433 } }
{ environments : [ " development " ] pg_config : { port : 5433 } }