Sha256: be2caa6534e27e363b4c0e9bd2df4a30fe1acc84667f0cfc2093d8fb163d79a4

Contents?: true

Size: 514 Bytes

Versions: 13

Compression:

Stored size: 514 Bytes

Contents

require "appraisal/bundler_dsl"
require 'appraisal/utils'

module Appraisal
  class Group < BundlerDSL
    def initialize(group_names)
      super()
      @group_names = group_names
    end

    def to_s
      formatted_output indent(super)
    end

    # :nodoc:
    def for_dup
      formatted_output indent(super)
    end

    private

    def formatted_output(output_dependencies)
      <<-OUTPUT.strip
group #{Utils.format_arguments(@group_names)} do
#{output_dependencies}
end
      OUTPUT
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/lib/appraisal/group.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/lib/appraisal/group.rb
appraisal-2.5.0 lib/appraisal/group.rb
appraisal-2.4.1 lib/appraisal/group.rb
appraisal-2.4.0 lib/appraisal/group.rb
appraisal-2.3.0 lib/appraisal/group.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/appraisal-2.2.0/lib/appraisal/group.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/appraisal-2.2.0/lib/appraisal/group.rb
appraisal-2.2.0 lib/appraisal/group.rb
appraisal-2.1.0 lib/appraisal/group.rb
appraisal-2.0.2 lib/appraisal/group.rb
appraisal-2.0.1 lib/appraisal/group.rb
appraisal-2.0.0 lib/appraisal/group.rb