Sha256: dcfac796bd81fe81de4a82a7ff566ec27792e8cd728441607f8add550888c57f
Contents?: true
Size: 360 Bytes
Versions: 4
Compression:
Stored size: 360 Bytes
Contents
module AngularSprinkles module Element class Attributes def initialize(args, options) @args = args @content = options.fetch(:content, '') @tag = options[:tag] || :div end def to_content_tag attrs = @args.map(&:attributes).inject(&:deep_merge) [@tag, @content, attrs] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems