Method: Vips::Error#initialize
- Defined in:
- lib/vips.rb
#initialize(msg = nil) ⇒ Error
Returns a new instance of Error.
482 483 484 485 486 487 488 489 490 491 |
# File 'lib/vips.rb', line 482 def initialize msg = nil if msg @details = msg elsif Vips::vips_error_buffer != "" @details = Vips::vips_error_buffer Vips::vips_error_clear else @details = nil end end |