Method: Vips::Object#get_pspec
- Defined in:
- lib/vips/object.rb
#get_pspec(name) ⇒ Object
return a pspec, or nil ... nil wil leave a message in the error log which you must clear
117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/vips/object.rb', line 117 def get_pspec name pspec = GObject::GParamSpecPtr.new argument_class = Vips::ArgumentClassPtr.new argument_instance = Vips::ArgumentInstancePtr.new result = Vips::vips_object_get_argument self, name, pspec, argument_class, argument_instance return nil if result != 0 pspec end |