Sha256: 9ec812b769e3ad45c94529b12f86dae2d1f35c9f4fde88e80f28ca10634eb0cc

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

module Faker
  class Theater < Base
    class << self
      ##
      # Produces the name of a musical for an older audience
      #
      # @return [String]
      #
      # @example
      #   Faker::Theater.adult_musical
      #     #=> "Mamma Mia!"
      #
      # @faker.version 2.13.0
      def adult_musical
        fetch('theater.adult_musical')
      end

      ##
      # Produces the name of a musical for a younger audience
      #
      # @return [String]
      #
      # @example
      #   Faker::Theater.kids_musical
      #     #=> "Into the Woods JR."
      #
      # @faker.version 2.13.0
      def kids_musical
        fetch('theater.kids_musical')
      end

      ##
      # Produces the name of a play
      #
      # @return [String]
      #
      # @example
      #   Faker::Theater.play
      #     #=> "Death of a Salesman"
      #
      # @faker.version 2.13.0
      def play
        fetch('theater.play')
      end
    end
  end

  include Faker::Deprecator
  deprecate_generator('Show', Theater)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faker-3.4.2 lib/faker/default/theater.rb
faker-3.4.1 lib/faker/default/theater.rb
faker-3.3.1 lib/faker/default/theater.rb