Class: I18n::Tasks::Scanners::PrismScanners::ParsedModule

Inherits:
Root
  • Object
show all
Defined in:
lib/i18n/tasks/scanners/prism_scanners/nodes.rb

Instance Attribute Summary

Attributes inherited from Root

#calls, #children, #file_path, #node, #parent, #rails, #translation_calls

Instance Method Summary collapse

Methods inherited from Root

#add_call, #add_child, #add_translation_call, #initialize, #partial_view?, #private_method, #process, #rails_view?, #support_candidate_keys?

Constructor Details

This class inherits a constructor from I18n::Tasks::Scanners::PrismScanners::Root

Instance Method Details

#pathObject



205
206
207
# File 'lib/i18n/tasks/scanners/prism_scanners/nodes.rb', line 205

def path
  (@parent&.path || []) + [path_name]
end

#path_nameObject



209
210
211
# File 'lib/i18n/tasks/scanners/prism_scanners/nodes.rb', line 209

def path_name
  @node.name.to_s.underscore
end

#support_relative_keys?Boolean

Returns:

  • (Boolean)


201
202
203
# File 'lib/i18n/tasks/scanners/prism_scanners/nodes.rb', line 201

def support_relative_keys?
  false
end