Method: Vips::Operation#get_construct_args
- Defined in:
- lib/vips/operation.rb
#get_construct_args ⇒ Object
not quick! try to call this infrequently
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/vips/operation.rb', line 93 def get_construct_args args = [] argument_map do |pspec, argument_class, argument_instance| flags = argument_class[:flags] if (flags & ARGUMENT_CONSTRUCT) != 0 # names can include - as punctuation, but we always use _ in # Ruby name = pspec[:name].tr("-", "_") args << [name, flags] end end return args end |