Sha256: 12d7386b2ca5263eaf08283761677fe331c3db71bb636c82a127344032923821
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 Bytes
Contents
# frozen_string_literal: true require_relative "base" module ERBLint module Linters module ArgumentMappers # Maps attributes in the clipboard-copy element to arguments for the ClipboardCopy component. class ClipboardCopy < Base DEFAULT_TAG = "clipboard-copy" def attribute_to_args(attribute) attr_name = attribute.name if attr_name == "value" { value: attribute.value.to_json } else # Assume the attribute is a system argument. SystemArguments.new(attribute).to_args end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
primer_view_components-0.0.49 | lib/primer/view_components/linters/argument_mappers/clipboard_copy.rb |