Class: I18nTemplate::Extractor::Base
- Inherits:
-
Object
- Object
- I18nTemplate::Extractor::Base
- Defined in:
- lib/i18n_template/extractor/base.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call(source) ⇒ Object
-
#initialize(options) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options) ⇒ Base
Returns a new instance of Base.
15 16 17 18 |
# File 'lib/i18n_template/extractor/base.rb', line 15 def initialize() @options = self.class..dup @options.merge!() end |
Class Method Details
.default_options ⇒ Object
7 8 9 10 11 12 |
# File 'lib/i18n_template/extractor/base.rb', line 7 def { :glob => ['app/views/**/*.{erb,rhtml}'], :format => 'gettext' } end |
Instance Method Details
#call(source) ⇒ Object
20 21 22 |
# File 'lib/i18n_template/extractor/base.rb', line 20 def call(source) raise NotImplementedError, "'call' is not implemented by #{self.class.name}" end |