Module: Faker::Movie
Constant Summary
collapse
- SUFFIXES =
[
"from Hell", "from Outer Space", "from Mars", "from the Black Lagoon", "with a Thousand Faces",
"from Across the Ocean", "Who Fell to Earth", "That Came to Dinner"
]
- COLORS =
%w{Red Yellow Black White}
Instance Method Summary
collapse
const_missing, k, underscore
Instance Method Details
#title ⇒ Object
14
15
16
17
18
19
20
21
|
# File 'lib/ffaker/movie.rb', line 14
def title
case rand(4)
when 0 then title_with_prefix
when 1 then title_with_suffix
when 2 then simple_title
when 3 then title_from_formula
end
end
|