Sha256: ca8f4b9bc8fb069701daad6534d12f0ff56e3168fd280a00423e11035b9efb46

Contents?: true

Size: 222 Bytes

Versions: 60

Compression:

Stored size: 222 Bytes

Contents

# Boolean

`to_bool` aka `to_b`
------
Returns self.

```ruby
true.to_bool #=> true
false.to_b   #=> false
```

`to_i`
------
Returns the integer representation of a boolean.

```ruby
true.to_i  #=> 1
false.to_i #=> 0
```

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
lite-ruby-2.3.0 docs/BOOLEAN.md
lite-ruby-2.2.0 docs/BOOLEAN.md
lite-ruby-2.1.0 docs/BOOLEAN.md
lite-ruby-2.0.7 docs/BOOLEAN.md
lite-ruby-2.0.6 docs/BOOLEAN.md
lite-ruby-2.0.5 docs/BOOLEAN.md
lite-ruby-2.0.4 docs/BOOLEAN.md
lite-ruby-2.0.3 docs/BOOLEAN.md
lite-ruby-2.0.2 docs/BOOLEAN.md
lite-ruby-2.0.1 docs/BOOLEAN.md
lite-ruby-2.0.0 docs/BOOLEAN.md
lite-ruby-1.3.3 docs/BOOLEAN.md
lite-ruby-1.3.2 docs/BOOLEAN.md
lite-ruby-1.3.1 docs/BOOLEAN.md
lite-ruby-1.3.0 docs/BOOLEAN.md
lite-ruby-1.2.0 docs/BOOLEAN.md
lite-ruby-1.1.15 docs/BOOLEAN.md
lite-ruby-1.1.14 docs/BOOLEAN.md
lite-ruby-1.1.13 docs/BOOLEAN.md
lite-ruby-1.1.12 docs/BOOLEAN.md