20 lines
387 B
Text
20 lines
387 B
Text
```doc
|
|
# Boolean
|
|
|
|
Provides a common interface for values masquerading as Booleans.
|
|
```
|
|
protocol Boolean, as:
|
|
```doc
|
|
A mechanism for values to convert themselves into a concrete boolean value.
|
|
|
|
Must be implemented.
|
|
```
|
|
def true?(self: Self): Outrun.Core.Boolean
|
|
|
|
```doc
|
|
Is the value false?
|
|
```
|
|
def false?(self: Self): Outrun.Core.Boolean, as:
|
|
!true?(self)
|
|
end
|
|
end
|