summaryrefslogtreecommitdiffhomepage
path: root/dragon/console_color.rb
diff options
context:
space:
mode:
author_Tradam <[email protected]>2021-12-16 19:22:26 -0500
committerGitHub <[email protected]>2021-12-16 19:22:26 -0500
commit5954b9beb4d4a3b4f248d72d1851195f030558a8 (patch)
treefecd8aa840a25afdb502915b0fdb4d03b7ed339a /dragon/console_color.rb
parent2f845281f133849256b57bb08fd3e9ae57600784 (diff)
parenteaa29e72939f5edf61735ccbb73c36ee89369f65 (diff)
downloaddragonruby-game-toolkit-contrib-5954b9beb4d4a3b4f248d72d1851195f030558a8.tar.gz
dragonruby-game-toolkit-contrib-5954b9beb4d4a3b4f248d72d1851195f030558a8.zip
Merge branch 'DragonRuby:master' into masterHEADmaster
Diffstat (limited to 'dragon/console_color.rb')
-rw-r--r--dragon/console_color.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/dragon/console_color.rb b/dragon/console_color.rb
index f5b164d..1b19c22 100644
--- a/dragon/console_color.rb
+++ b/dragon/console_color.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
# Copyright 2019 DragonRuby LLC
# MIT License
# console_color.rb has been released under MIT (*only this file*).
@@ -22,6 +23,10 @@ module GTK
@color
end
+ def to_s
+ "GTK::Console::Color #{to_h}"
+ end
+
def to_h
{ r: @color[0], g: @color[1], b: @color[2], a: @color[3] }
end