Class: GitTrend::Formatter
- Inherits:
-
Object
- Object
- GitTrend::Formatter
- Defined in:
- lib/git_trend/formatter.rb
Instance Method Summary collapse
-
#initialize(key) ⇒ Formatter
constructor
A new instance of Formatter.
- #print(projects, options = nil) ⇒ Object
- #print_languages(languages) ⇒ Object
Constructor Details
#initialize(key) ⇒ Formatter
Returns a new instance of Formatter.
3 4 5 |
# File 'lib/git_trend/formatter.rb', line 3 def initialize(key) @formatter = formatter_class(key).new end |
Instance Method Details
#print(projects, options = nil) ⇒ Object
7 8 9 |
# File 'lib/git_trend/formatter.rb', line 7 def print(projects, = nil) @formatter.print(projects, ) end |
#print_languages(languages) ⇒ Object
11 12 13 |
# File 'lib/git_trend/formatter.rb', line 11 def print_languages(languages) @formatter.print_languages(languages) end |