Class: Reponaut::Application::Presenter

Inherits:
Object
  • Object
show all
Defined in:
lib/reponaut/presenter.rb

Direct Known Subclasses

LanguagePresenter, LongPresenter, SimplePresenter

Instance Method Summary collapse

Instance Method Details

#format(repo) ⇒ Object



4
5
6
7
8
# File 'lib/reponaut/presenter.rb', line 4

def format(repo)
  line = repo.name
  line = "#{line} -> #{repo.upstream}" if repo.fork?
  line
end