Class: I18n::Hygiene::Checks::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n/hygiene/checks/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Base

Returns a new instance of Base.



5
6
7
8
# File 'lib/i18n/hygiene/checks/base.rb', line 5

def initialize(config)
  raise "Must pass an instance of Config" unless config.is_a?(I18n::Hygiene::Config)
  @config = config
end

Instance Method Details

#runObject



10
11
12
# File 'lib/i18n/hygiene/checks/base.rb', line 10

def run
  raise "#run must be implemented by subclass"
end