Sha256: ee0c89dee2093ece84dbedb3fcc8d660f34892c42b34e0eb1e656ab8d0fa54e8

Contents?: true

Size: 1.1 KB

Versions: 11

Compression:

Stored size: 1.1 KB

Contents

# frozen_string_literal: true

module Faker
  class TvShows
    class Simpsons < Base
      flexible :simpsons

      class << self
        ##
        # Produces a character from The Simpsons.
        #
        # @return [String]
        #
        # @example
        #   Faker::TvShows::Simpsons.character #=> "Charles Montgomery Burns"
        #
        # @faker.version 1.8.0
        def character
          fetch('simpsons.characters')
        end

        ##
        # Produces a location from The Simpsons.
        #
        # @return [String]
        #
        # @example
        #   Faker::TvShows::Simpsons.location #=> "Moe's Tavern"
        #
        # @faker.version 1.8.0
        def location
          fetch('simpsons.locations')
        end

        ##
        # Produces a quote from The Simpsons.
        #
        # @return [String]
        #
        # @example
        #   Faker::TvShows::Simpsons.quote
        #     #=> "It takes two to lie: one to lie and one to listen."
        #
        # @faker.version 1.8.0
        def quote
          fetch('simpsons.quotes')
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
faker-2.12.0 lib/faker/tv_shows/simpsons.rb
faker-2.11.0 lib/faker/tv_shows/simpsons.rb
faker-2.10.2 lib/faker/tv_shows/simpsons.rb
faker-2.10.1 lib/faker/tv_shows/simpsons.rb
faker-2.10.0 lib/faker/tv_shows/simpsons.rb
faker-2.9.0 lib/faker/tv_shows/simpsons.rb
faker-2.8.1 lib/faker/tv_shows/simpsons.rb
faker-2.8.0 lib/faker/tv_shows/simpsons.rb
faker-2.7.0 lib/faker/tv_shows/simpsons.rb
faker-2.6.0 lib/faker/tv_shows/simpsons.rb
faker-2.5.0 lib/faker/tv_shows/simpsons.rb