Files
news.gitea.happylizard.me/bin/gems/rainbow-3.1.1/lib/rainbow/global.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

26 lines
362 B
Ruby

# frozen_string_literal: true
require_relative 'wrapper'
module Rainbow
def self.global
@global ||= Wrapper.new
end
def self.enabled
global.enabled
end
def self.enabled=(value)
global.enabled = value
end
def self.uncolor(string)
StringUtils.uncolor(string)
end
end
def Rainbow(string)
Rainbow.global.wrap(string.to_s)
end