Sha256: f71f395213e9ad2f34a39abfa516294b4d13210792b899a9c7cbd9b5707e6950
Contents?: true
Size: 652 Bytes
Versions: 130
Compression:
Stored size: 652 Bytes
Contents
# frozen_string_literal: true module NfgUi module Bootstrap module Utilities # Allow components to be right and center aligned module Alignable def center options.fetch(:center, false) end def right options.fetch(:right, false) end private def css_classes [ super, ('justify-content-center' if center), ('justify-content-end' if right) ].join(' ').squish end def non_html_attribute_options super.push(:right, :center) end end end end end
Version data entries
130 entries across 130 versions & 1 rubygems