mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 14:48:40 +01:00
102 lines
3.5 KiB
HTML
102 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
|
|
<title>Platform Class – Wren</title>
|
|
<script type="application/javascript" src="../../../prism.js" data-manual></script>
|
|
<script type="application/javascript" src="../../../wren.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="../../../prism.css" />
|
|
<link rel="stylesheet" type="text/css" href="../../../style.css" />
|
|
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic,700italic|Source+Code+Pro:400|Lato:400|Sanchez:400italic,400' rel='stylesheet' type='text/css'>
|
|
<!-- Tell mobile browsers we're optimized for them and they don't need to crop
|
|
the viewport. -->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
|
|
</head>
|
|
<body id="top" class="module">
|
|
<header>
|
|
<div class="page">
|
|
<div class="main-column">
|
|
<h1><a href="../../../">wren</a></h1>
|
|
<h2>a classy little scripting language</h2>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div class="page">
|
|
<nav class="big">
|
|
<a href="../../../"><img src="../../../wren.svg" class="logo"></a>
|
|
<ul>
|
|
<li><a href="../../">Back to Wren CLI</a></li>
|
|
<li><a href="../">Back to CLI Modules</a></li>
|
|
<li><a href="./">os module</a></li>
|
|
</ul>
|
|
<section>
|
|
<h2>os classes</h2>
|
|
<ul>
|
|
<li><a href="platform.html">Platform</a></li>
|
|
<li><a href="process.html">Process</a></li>
|
|
</ul>
|
|
</section>
|
|
</nav>
|
|
<nav class="small">
|
|
<table>
|
|
<tr>
|
|
<td><a href="../">Back to CLI Modules</a></td>
|
|
<td><a href="./">os module</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2"><h2>os classes</h2></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<ul>
|
|
<li><a href="platform.html">Platform</a></li>
|
|
<li><a href="process.html">Process</a></li>
|
|
</ul>
|
|
</td>
|
|
<td>
|
|
<ul>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</nav>
|
|
<main>
|
|
<h1>Platform Class</h1>
|
|
<p>The Platform class exposes basic information about the operating system Wren is
|
|
running on top of.</p>
|
|
<h2>Static Methods <a href="#static-methods" name="static-methods" class="header-anchor">#</a></h2>
|
|
<h3><strong>name</strong> <a href="#name" name="name" class="header-anchor">#</a></h3>
|
|
<p>The name of the platform. This roughly describes the operating system, and is
|
|
usually one of:</p>
|
|
<ul>
|
|
<li>“iOS”</li>
|
|
<li>“Linux”</li>
|
|
<li>“OS X”</li>
|
|
<li>“POSIX”</li>
|
|
<li>“Unix”</li>
|
|
<li>“Windows”</li>
|
|
</ul>
|
|
<p>If Wren was compiled for an unknown operating system, returns “Unknown”.</p>
|
|
<h3><strong>isPosix</strong> <a href="#isposix" name="isposix" class="header-anchor">#</a></h3>
|
|
<p>Returns <code>true</code> if the host operating system is known to support the POSIX
|
|
standard. This is true for Linux and other Unices, as well as the various Apple
|
|
operating systems.</p>
|
|
<h3><strong>isWindows</strong> <a href="#iswindows" name="iswindows" class="header-anchor">#</a></h3>
|
|
<p>Returns <code>true</code> if the host operating system is some flavor of Windows.</p>
|
|
</main>
|
|
</div>
|
|
<footer>
|
|
<div class="page">
|
|
<div class="main-column">
|
|
<p>Wren lives
|
|
<a href="https://github.com/wren-lang/wren">on GitHub</a>
|
|
— Made with ❤ by
|
|
<a href="http://journal.stuffwithstuff.com/">Bob Nystrom</a> and
|
|
<a href="https://github.com/wren-lang/wren/blob/main/AUTHORS">friends</a>.
|
|
</p>
|
|
<div class="main-column">
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|