class CKEditor5::Rails::Assets::AssetsBundle
def <<(other)
def <<(other) raise TypeError, 'other must be an instance of AssetsBundle' unless other.is_a?(AssetsBundle) @scripts = scripts + other.scripts @stylesheets = stylesheets + other.stylesheets end
def empty?
def empty? scripts.empty? && stylesheets.empty? end
def initialize(scripts: nil, stylesheets: nil)
def initialize(scripts: nil, stylesheets: nil) @scripts = scripts @stylesheets = stylesheets end
def preloads
def preloads stylesheets + scripts.map(&:preloads) end
def scripts
def scripts @scripts || [] end
def stylesheets
def stylesheets @stylesheets || [] end
def to_json(*_args)
def to_json(*_args) { scripts: scripts.map(&:to_h), stylesheets: stylesheets }.to_json end
def translations_scripts
def translations_scripts scripts.select(&:translation?) end