Sha256: 948829547e8254ee157757ef1f0f6bfec5e11ba54047056f97b663e738538971

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

module UV
  module Resource
    def check_result(rc)
      @loop.lookup_error(rc) if rc && rc < 0 
    end

    def check_result!(rc)
      e = check_result(rc)
      raise e if e
    end

    def to_ptr
      @pointer
    end

    protected

    attr_reader :loop
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
uvrb-0.2.0 lib/uv/resource.rb