summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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