class ERBLint::Linters::ArgumentMappers::ClipboardCopy
Maps attributes in the clipboard-copy element to arguments for the ClipboardCopy
component.
Constants
- ATTRIBUTES
- DEFAULT_TAG
Public Instance Methods
attribute_to_args(attribute)
click to toggle source
# File lib/primer/view_components/linters/argument_mappers/clipboard_copy.rb, line 13 def attribute_to_args(attribute) attr_name = attribute.name { attr_name.to_sym => erb_helper.convert(attribute) } end