Class: I18n::Tasks::Scanners::AstMatchers::RailsModelMatcher
- Inherits:
-
BaseMatcher
- Object
- BaseMatcher
- I18n::Tasks::Scanners::AstMatchers::RailsModelMatcher
- Defined in:
- lib/i18n/tasks/scanners/ast_matchers/rails_model_matcher.rb
Instance Method Summary collapse
Methods inherited from BaseMatcher
Constructor Details
This class inherits a constructor from I18n::Tasks::Scanners::AstMatchers::BaseMatcher
Instance Method Details
#convert_to_key_occurrences(send_node, _method_name, location: send_node.loc) ⇒ Object
7 8 9 10 |
# File 'lib/i18n/tasks/scanners/ast_matchers/rails_model_matcher.rb', line 7 def convert_to_key_occurrences(send_node, _method_name, location: send_node.loc) human_attribute_name_to_key_occurences(send_node: send_node, location: location) || model_name_human_to_key_occurences(send_node: send_node, location: location) end |