Class: Vips::Operation

Inherits:
Object
  • Object
show all
Defined in:
lib/vips8/operation.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) get_args

Fetch arg list, remove boring ones, sort into priority order.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/vips8/operation.rb', line 5

def get_args
    gobject_class = gtype.to_class
    props = gobject_class.properties.select do |name|
        flags = get_argument_flags name
        io = ((flags & :input) | (flags & :output)) != 0
        dep = (flags & :deprecated) != 0
        io & (not dep)
    end
    args = props.map {|name| Argument.new self, name}
    args.sort! {|a, b| a.priority - b.priority}
end