Class: I18n::Index::Base
Direct Known Subclasses
Instance Attribute Summary collapse
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#root_dir ⇒ Object
Returns the value of attribute root_dir.
Instance Method Summary collapse
- #filenames ⇒ Object
- #files ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#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 |