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.36.5 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.52.2 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.36.4 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.52.1 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.52.0 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.36.3 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.51.0 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.36.2 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.50.1 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.50.0 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.36.1 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.36.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.49.2 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.35.2 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.49.1 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.49.0 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.35.1 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.35.0 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.48.2 app/lib/primer/join_style_arguments_helper.rb
openproject-primer_view_components-0.48.1 app/lib/primer/join_style_arguments_helper.rb