summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGrzegorz Jakubiak <[email protected]>2020-10-23 10:08:55 +0200
committerTom Black <[email protected]>2021-02-13 17:19:43 -0600
commitc6993d3b810317693e295b42a1d6c8fd8b4c702d (patch)
tree0959d4755ea31166339006ffa81d291f41248a9f
parent3cf96b910851c1c08c9bbae8fefbacce65db4f3c (diff)
downloadruby2d-c6993d3b810317693e295b42a1d6c8fd8b4c702d.tar.gz
ruby2d-c6993d3b810317693e295b42a1d6c8fd8b4c702d.zip
Alias color to allow British English spelling
-rw-r--r--lib/ruby2d/renderable.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ruby2d/renderable.rb b/lib/ruby2d/renderable.rb
index d6e7ae8..c214667 100644
--- a/lib/ruby2d/renderable.rb
+++ b/lib/ruby2d/renderable.rb
@@ -32,8 +32,8 @@ module Ruby2D
end
# Allow British English spelling of color
- def colour; self.color end
- def colour=(c); self.color = c end
+ alias_method :colour, :color
+ alias_method :colour=, :color=
# Allow shortcuts for setting color values
def r; self.color.r end