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.37 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.36 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.35 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.34 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.33 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.32 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.31 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.30 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.29 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.28 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.27 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.26 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.25 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.24 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.23 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.22 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.21 lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.20 lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.19 lib/primer/join_style_arguments_helper.rb