Class: Gitgo::Documents::Comment

Inherits:
Gitgo::Document show all
Defined in:
lib/gitgo/documents/comment.rb

Constant Summary

Constants inherited from Gitgo::Document

Gitgo::Document::AUTHOR, Gitgo::Document::DATE, Gitgo::Document::SHA

Instance Attribute Summary

Attributes inherited from Gitgo::Document

#attrs, #repo, #sha

Instance Method Summary collapse

Methods inherited from Gitgo::Document

#==, #[], [], #[]=, #active?, #author, #author=, cast, #commit!, create, #create, #date, #date=, delete, #delete, #each_index, #errors, find, #graph, #graph_head, #graph_head?, #graph_head_idx, #idx, #index, #indexes, inherited, #initialize, #initialize_copy, #inspect, #link, #link_to, #merge, #merge!, #node, #normalize, read, #reindex, repo, #reset, #save, save, #saved?, #summary, #tags, type, #update, update, update_index, #update_to, #validate

Constructor Details

This class inherits a constructor from Gitgo::Document

Instance Method Details

#normalize!Object



11
12
13
14
15
16
17
# File 'lib/gitgo/documents/comment.rb', line 11

def normalize!
  if re = attrs['re']
    attrs['re'] = repo.resolve(re)
  end
  
  super
end