resaloli

getMethods [LUA] [CC]

Oct 19th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | None | 0 0
  1. local args,args1 = ...
  2.  
  3. mon = peripherals.wrap(args)
  4.  
  5. term.redirect(mon)
  6. term.clear()
  7. term.setCursorPos(1,1)
  8.  
  9. for i,v in ipairs(peripheral.getMethods(args1)) do
  10.     print(i..":"..v)
  11. end
Add Comment
Please, Sign In to add comment