Sha256: 59e1eae7567eabe990603e341edf4290381b50963bc0a7919b643d51fe3b73d7

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

# This code overwrites the methods from the colored gem
# via https://github.com/kigster/colored2/blob/aa274018906641ffb07aaa3015081a174d169dfe/lib/colored2.rb

require 'colored2'

class String
  Colored2::COLORS.keys.each do |color|
    define_method(color) do
      self # do nothing with the string, but return it
    end
  end
  Colored2::EXTRAS.keys.each do |extra|
    define_method(extra) do
      self # do nothing with the string, but return it
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastlane-2.14.1 fastlane_core/lib/fastlane_core/ui/disable_colors.rb
fastlane-2.14.0 fastlane_core/lib/fastlane_core/ui/disable_colors.rb