Sha256: e3163e2e343d9e6743faaf2cf6261259eecd3b5ebf0acd038757bbdbc70bbedc

Contents?: true

Size: 309 Bytes

Versions: 239

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

module Primer
  # :nodoc:
  module JoinStyleArgumentsHelper
    # Join two `style` arguments
    #
    # join_style_arguments("width: 100%", "height: 100%") =>
    #   "width: 100%;height: 100%"
    def join_style_arguments(*args)
      args.compact.join(";")
    end
  end
end

Version data entries

239 entries across 239 versions & 2 rubygems

Version Path
primer_view_components-0.0.57 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.56 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.55 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.54 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.53 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.52 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.51 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.50 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.49 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.48 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.47 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.46 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.45 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.44 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.43 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.42 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.41 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.40 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.39 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.38 app/lib/primer/join_style_arguments_helper.rb