Sha256: aa9d103b3f2f4a5c9003f285eaddbb4fbeb9807d83d8989c675a94dede6b33fb

Contents?: true

Size: 263 Bytes

Versions: 1

Compression:

Stored size: 263 Bytes

Contents

module UV
  module Resource
    def check_result(rc)
      @loop.last_error if rc == -1
    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.1.0 lib/uv/resource.rb