Method: ViewComponent::Base#virtual_path

Defined in:
lib/view_component/base.rb

#virtual_pathObject

Removes the first part of the path and the extension.



115
116
117
# File 'lib/view_component/base.rb', line 115

def virtual_path
  self.class.source_location.gsub(%r{(.*app/components)|(\.rb)}, "")
end