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
openproject-primer_view_components-0.48.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.47.1 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.47.0 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.34.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.46.1 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.46.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.45.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.44.3 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.44.2 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.44.1 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.33.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.44.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.43.1 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.43.0 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.32.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.42.0 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.31.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.41.1 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.41.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.40.0 app/lib/primer/join_style_arguments_helper.rb