Method: Vips::Operation#initialize
- Defined in:
- lib/vips/operation.rb
#initialize(value) ⇒ Operation
Returns a new instance of Operation.
213 214 215 216 217 218 219 220 221 222 |
# File 'lib/vips/operation.rb', line 213 def initialize value # allow init with a pointer so we can wrap the return values from # things like _build if value.is_a? String value = Vips.vips_operation_new value raise Vips::Error if value.null? end super end |