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( = {}) @root_dir = [:root_dir] || Dir.pwd @pattern = [:pattern] || Index.pattern [:format].setup(self) if [:format] end |