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.101 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.100 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.99 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.98 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.97 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.96 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.95 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.94 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.93 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.92 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.91 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.90 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.85 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.84 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.83 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.82 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.81 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.80 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.79 app/lib/primer/join_style_arguments_helper.rb
primer_view_components-0.0.78 app/lib/primer/join_style_arguments_helper.rb