Method: I18n::Index::Base#initialize

Defined in:
lib/i18n/index/base.rb

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
# File 'lib/i18n/index/base.rb', line 8

def initialize(options = {})
  @root_dir = options[:root_dir] || Dir.pwd
  @pattern = options[:pattern] || Index.pattern
  options[:format].setup(self) if options[:format]
end