Sha256: 5ad4cea00fd2346763a9e7114adcd2cec12beceeb0df7fade0ca06e267ef8bc6
Contents?: true
Size: 341 Bytes
Versions: 3
Compression:
Stored size: 341 Bytes
Contents
module AngularSprinkles module Directive class Name def initialize(*names) @names = names.flatten.map { |name| name.to_s.underscore.dasherize } end def attributes { data: to_empty_hash } end private def to_empty_hash Hash[@names.product([''])] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems