Class: GemDigest::Reporters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gem_digest/reporters/base.rb

Direct Known Subclasses

Console, Markdown

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
# File 'lib/gem_digest/reporters/base.rb', line 6

def initialize(options = {})
  @options = options
  @output_dir = options[:output_dir] || "output"
  ensure_output_directory
end

Instance Method Details

#generate_report(categorized_gems) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/gem_digest/reporters/base.rb', line 12

def generate_report(categorized_gems)
  raise NotImplementedError, "Subclasses must implement generate_report"
end