class Erb::Generators::ComponentGenerator

def data_attributes

def data_attributes
  if stimulus?
    " data-controller=\"#{stimulus_controller}\""
  end
end