From 95c80e2fc2fc831d8193bef9589d40553049440e Mon Sep 17 00:00:00 2001 From: Oskar Eichler Date: Sun, 30 Aug 2026 02:39:04 +0200 Subject: [PATCH] Add colour presenter aliases --- lib/rainbow/null_presenter.rb | 1 + lib/rainbow/presenter.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/rainbow/null_presenter.rb b/lib/rainbow/null_presenter.rb index 104738f..b30200f 100644 --- a/lib/rainbow/null_presenter.rb +++ b/lib/rainbow/null_presenter.rb @@ -92,6 +92,7 @@ def respond_to_missing?(method_name, *args) alias foreground color alias fg color + alias colour color alias bg background alias bold bright alias dark faint diff --git a/lib/rainbow/presenter.rb b/lib/rainbow/presenter.rb index 5a391f2..16fec5f 100644 --- a/lib/rainbow/presenter.rb +++ b/lib/rainbow/presenter.rb @@ -25,6 +25,7 @@ def color(*values) alias foreground color alias fg color + alias colour color # Sets background color of this text. def background(*values)