ruby binding 追加
- FFI gem (libptouch)、exe ptouch-print-png(PNG のみ) - ステータス 32 バイトを Hash に展開(parse_status / status_hash) - CMake: libptouch 共有ライブラリ(ptouch_shared) - RuboCop、gemspec(homepage / source_code_uri) Made-with: Cursor
This commit is contained in:
12
ruby/lib/libptouch/error.rb
Normal file
12
ruby/lib/libptouch/error.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Libptouch
|
||||
class Error < StandardError
|
||||
attr_reader :code
|
||||
|
||||
def initialize(code, message = nil)
|
||||
@code = code
|
||||
super(message || "libptouch error #{code}")
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user