Sha256: 3d04c4b54497c8aa82f995bed05b43f8a5fdfbb5a6007fa98f1431373bc601e8

Contents?: true

Size: 310 Bytes

Versions: 30

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

module Ariadne
  # :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

30 entries across 30 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.12 app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.12-x86_64-linux app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.12-x86_64-darwin app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.12-x64-mingw32 app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.12-x64-mingw-ucrt app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.12-arm64-darwin app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.12-aarch64-linux app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.11 app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.11-x86_64-linux app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.11-x86_64-darwin app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.11-x64-mingw32 app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.11-x64-mingw-ucrt app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.11-arm64-darwin app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.11-aarch64-linux app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.10 app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.10-x86_64-linux app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.10-x86_64-darwin app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.10-x64-mingw32 app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.10-x64-mingw-ucrt app/lib/ariadne/join_style_arguments_helper.rb
ariadne_view_components-0.0.10-arm64-darwin app/lib/ariadne/join_style_arguments_helper.rb