Sha256: e025ea691e052c790cace6ca98794ecd817bd9d037bf279700d80a7fe3c5312f
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
# frozen_string_literal: true require "classlist/operation" # Classlist::Add is an operation that adds tokens to the original # classlist when added to it. class Classlist::Add < Classlist::Operation def merge(original) original.entries + entries end # resolve changes the original classlist def resolve(original) entries.each do |entry| original.add(entry) end super end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
classlist-1.1.0 | lib/classlist/add.rb |