module NFC

Public Class Methods

context() click to toggle source
# File lib/ruby-nfc/nfc.rb, line 16
def self.context
  unless @@context
    ptr = FFI::MemoryPointer.new(:pointer, 1)
    LibNFC.nfc_init(ptr)
    @@context = ptr.read_pointer
  end
  @@context
end
logger() click to toggle source
# File lib/ruby-nfc/nfc.rb, line 25
def self.logger
      @@logger
end
version() click to toggle source
# File lib/ruby-nfc/nfc.rb, line 12
def self.version
  LibNFC.nfc_version
end