class Pigpio::Buffer
The class of Rx buffer.
Attributes
ret_code[R]
Public Class Methods
new(ret_code,str=nil)
click to toggle source
Calls superclass method
# File lib/pigpio/buffer.rb, line 4 def initialize(ret_code,str=nil) super(str) @ret_code=ret_code end
Public Instance Methods
valid?()
click to toggle source
# File lib/pigpio/buffer.rb, line 8 def valid? @ret_code>=0 end