module GPhoto2
Constants
- CameraEvent
- VERSION
Public Class Methods
check!(rc)
click to toggle source
@param [Integer] rc @return [void] @raise [GPhoto2::Error] when the return code is not {FFI::GPhoto2Port::GP_OK}
# File lib/gphoto2.rb, line 70 def self.check!(rc) logger.debug "#{caller.first} => #{rc}" if ENV['DEBUG'] return if rc >= FFI::GPhoto2Port::GP_OK raise Error.new(PortResult.as_string(rc), rc) end
logger()
click to toggle source
@return [Logger]
# File lib/gphoto2.rb, line 63 def self.logger @logger ||= Logger.new(STDERR) end