class Rails::Generators::ComponentGenerator

def create_component_file

def create_component_file
  template "component.rb", File.join(component_path, class_path, "#{file_name}#{options[:skip_suffix] ? "" : "_component"}.rb")
end

def default_parent_class

def default_parent_class
  defined?(ApplicationComponent) ? ApplicationComponent : ViewComponent::Base
end

def initialize_body

def initialize_body
  attributes.map { |attr| "@#{attr.name} = #{attr.name}" }.join("\n    ")
end

def initialize_call_method_for_inline?

def initialize_call_method_for_inline?
  options["inline"]
end

def initialize_signature

def initialize_signature
  return if attributes.blank?
  attributes.map { |attr| "#{attr.name}:" }.join(", ")
end

def parent_class

def parent_class
  return options[:parent] if options[:parent]
  ViewComponent::Base.config.component_parent_class || default_parent_class
end