class ViewComponent::Template
def compile_to_component
def compile_to_component if !inline_call? @component.silence_redefinition_of_method(@call_method_name) # rubocop:disable Style/EvalWithLocation @component.class_eval <<-RUBY, @path, @lineno def #{@call_method_name} #{compiled_source} end RUBY # rubocop:enable Style/EvalWithLocation end @component.define_method(safe_method_name, @component.instance_method(@call_method_name)) end