Difference between revisions of "Peripheral.wrap"
From ComputerCraft Wiki
m (My definition of "prints the name of the device" isn't "handle.shutdown()". :P) |
(Fixed incorrect type displaying) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=peripheral.wrap | |name=peripheral.wrap | ||
− | |args= | + | |args= {{type|string}} side |
|returns=A handle to the peripheral on ''side''. | |returns=A handle to the peripheral on ''side''. | ||
|api=peripheral | |api=peripheral |
Revision as of 23:00, 29 March 2014
Function peripheral.wrap | |
Returns a handle to a peripheral that can then be used to call methods, as if using peripheral.call(side, method) | |
Syntax | peripheral.wrap(string side) |
Returns | A handle to the peripheral on side. |
Part of | ComputerCraft |
API | peripheral |