File: boolean.md

package info (click to toggle)
ruby-faker 2.21.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,076 kB
  • sloc: ruby: 19,088; makefile: 6
file content (10 lines) | stat: -rw-r--r-- 177 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
# Faker::Boolean

Available since version 1.6.2.

```ruby
Faker::Boolean.boolean #=> true

# Keyword parameter: true_ratio
Faker::Boolean.boolean(true_ratio: 0.2) #=> false
```