File: superhero.md

package info (click to toggle)
ruby-faker 3.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,596 kB
  • sloc: ruby: 20,656; sh: 6; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Faker::Superhero

Available since version 1.6.2.

```ruby
# Random Superhero name
Faker::Superhero.name #=> "Magnificent Shatterstar"

# Random Superhero power
Faker::Superhero.power #=> "Photokinesis"

# Random Superhero prefix
Faker::Superhero.prefix #=> "Captain"

# Random Superhero suffix
Faker::Superhero.suffix #=> "the Fated"

# Random Superhero descriptor
Faker::Superhero.descriptor #=> "Bizarro"
```