Sha256: 6049bf0b3012244587f61d5d0eacb1c81b7ac0ca680b26b0c71c4ae4f0556b79
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
# frozen_string_literal: true require "classlist/operation" # Classlist::Reset is an operation that removes all tokens from the original # classlist when merged. class Classlist::Reset < Classlist::Operation def merge(original) original.entries.replace(entries) end # #resolve changes the original classlist def resolve(original) original.entries.replace(entries) super end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
classlist-1.1.0 | lib/classlist/reset.rb |