Difference between revisions of "Peripheral.wrap"
From ComputerCraft Wiki
MKlegoman357 (Talk | contribs) m (Expanded) |
MKlegoman357 (Talk | contribs) m |
||
Line 3: | Line 3: | ||
|name=peripheral.wrap | |name=peripheral.wrap | ||
|args= {{type|string}} side | |args= {{type|string}} side | ||
− | |returns={{type|table}} handle with all | + | |returns={{type|table}} handle with all functions a peripheral has |
|api=peripheral | |api=peripheral | ||
|addon=ComputerCraft | |addon=ComputerCraft |
Latest revision as of 17:24, 10 April 2014
Function peripheral.wrap | |
Returns a table containing functions pointing to the peripheral's methods, which can then be called as if using peripheral.call(side, method). If no peripheral is found at the specified side, returns nil instead. | |
Syntax | peripheral.wrap(string side) |
Returns | table handle with all functions a peripheral has |
Part of | ComputerCraft |
API | peripheral |