Class: GitMeta::Hash

Inherits:
Hash
  • Object
show all
Defined in:
lib/git_meta.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



26
27
28
29
30
31
# File 'lib/git_meta.rb', line 26

def to_s
  inject("") do |result, hash|
    result += "#{hash[0]}: #{hash[1]}\n"
    # hash is an array of schema [key, value]
  end
end