Module: Faker::Movie

Extended by:
ModuleUtils, Movie
Included in:
Movie
Defined in:
lib/ffakerer/movie.rb

Constant Summary collapse

SUFFIXES =
k [
  "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 =
k %w{Red Yellow Black White}

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#titleObject



8
9
10
11
12
13
14
15
# File 'lib/ffakerer/movie.rb', line 8

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