Class: I18nTasks::Plugin::ViewComponent::ComponentErbScanner
- Inherits:
-
I18n::Tasks::Scanners::ErbAstScanner
- Object
- I18n::Tasks::Scanners::ErbAstScanner
- I18nTasks::Plugin::ViewComponent::ComponentErbScanner
- Defined in:
- lib/i18n_tasks/plugin/view_component/component_erb_scanner.rb
Instance Method Summary collapse
Instance Method Details
#absolute_key(key, path, roots: config[:relative_roots], exclude_method_name_paths: config[:relative_exclude_method_name_paths], calling_method: nil) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/i18n_tasks/plugin/view_component/component_erb_scanner.rb', line 7 def absolute_key(key, path, roots: config[:relative_roots], exclude_method_name_paths: config[:relative_exclude_method_name_paths], calling_method: nil) result = super result.gsub(/(\w+)\.(?=\1#{key})/, '') end |