Sha256: bda05d2fd8ce078eac4d0cc0f5b5d3cf9257004a42298f5d85bf95f46ad0b08a
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
module Minilab class MinilabWrapper #@private constructor :minilab_hardware def method_missing(method, *argz) result = @minilab_hardware.send(method, *argz) if result[:error] message = @minilab_hardware.get_error_string(result[:error]) raise "Command [#{method}(#{argz.inspect})] caused a hardware error: #{message}" end result[:value] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minilab-2.0.1-x86-mingw32 | lib/minilab/minilab_wrapper.rb |