Skip to content

Implement << #6

Description

@koppen

Implementing Classlist on a project and we got

 NoMethodError:
   undefined method `<<' for #<Classlist:0x000000010f544a38 @entries=["col-span-4", "row-span-1", "bg-white", "block-house_ad_component"]>

         super << " p-10 md:p-0"

because we had been treating classes as a String in that case.

Perhaps it makes sense to implement Classlist#<< perhaps as an alias for Classlist#merge?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions