Sha256: dba767adbeecb7e252f8afb6c0102047416a3980bbe425d30e4e193ca420ace3

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true

module MuxTf
  module Coloring
    def pastel
      self.class.pastel
    end

    def self.included(other)
      other.extend(ClassMethods)
    end

    module ClassMethods
      def pastel
        instance = Pastel.new
        instance.alias_color(:orange, :yellow)
        instance.alias_color(:gray, :bright_black)
        instance.alias_color(:grey, :bright_black)
        instance
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mux_tf-0.15.0 lib/mux_tf/coloring.rb
mux_tf-0.14.2 lib/mux_tf/coloring.rb
mux_tf-0.14.1 lib/mux_tf/coloring.rb
mux_tf-0.14.0 lib/mux_tf/coloring.rb