Skip to content

Commit 4721271

Browse files
committed
add a compat method
1 parent fc0246d commit 4721271

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/vips/gvalue.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ def self.enum_from_nick(gtype, value)
4040
value
4141
end
4242

43-
# convert an flags value (array[str/symb/int] | str/symb/int) into an
43+
# compatibility ... we used to call it this, perhaps someone has used this
44+
# internal method
45+
def self.from_nick(gtype, value)
46+
GValue.enum_from_nick(gtype, value)
47+
end
48+
49+
# convert an flags value (array[str/symb/int] | str/symb/int) into an
4450
# int ready for libvips
4551
def self.flags_from_nick(gtype, value)
4652
if value.is_a? String

0 commit comments

Comments
 (0)