Method: NFC::Felica#inspect
- Defined in:
- lib/nfc/felica.rb
#inspect ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/nfc/felica.rb', line 20 def inspect # 78 printf("The following (NFC) Felica tag was found:\n\n"); # 79 printf("%18s","ID (NFCID2): "); print_hex(ti.tif.abtId,8); # 80 printf("%18s","Parameter (PAD): "); print_hex(ti.tif.abtPad,8); pad = sprintf( (['%02x'] * 8 ).join(' '), *self.pad) string_ary = [ "(NFC) Felica Tag", "ID (NFCID2): #{to_s ' '}", "Parameter(PAD): #{pad}" ] string_ary.join "\n" end |