From 8de8296cc876ff06b6be4dd0f106d3c44dba58ce Mon Sep 17 00:00:00 2001 From: Lucas Haley Date: Wed, 19 Jun 2024 11:12:03 -0700 Subject: [PATCH] Added blendmode_enum= alias (#43) Added a convenience alias to align with default DragonRuby naming --- lib/zif/sprite.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/zif/sprite.rb b/lib/zif/sprite.rb index 19443c3..4599e57 100644 --- a/lib/zif/sprite.rb +++ b/lib/zif/sprite.rb @@ -173,6 +173,8 @@ def blend=(new_blendmode) @blendmode = BLENDMODE.fetch(new_blendmode, new_blendmode) end + alias blendmode_enum= blend= + # @return [Integer] The integer value for the specified blend mode. See {BLENDMODE} # @example This always returns an integer, even if you set it using a symbol # mysprite.blend = :alpha # => 1