Sha256: 62687c7c8ca36078ff2195c280584aaddcfe6ddbbd6a858e85502c0aba61134f
Contents?: true
Size: 460 Bytes
Versions: 32
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true module Proscenium::CssModule extend ActiveSupport::Autoload autoload :Path autoload :Transformer # Accepts one or more CSS class names, and transforms them into CSS module names. # # @param name [String,Symbol,Array<String,Symbol>] def css_module(*names) cssm.class_names(*names, require_prefix: false).join ' ' end private def cssm @cssm ||= Transformer.new(self.class.css_module_path) end end
Version data entries
32 entries across 32 versions & 1 rubygems