Sha256: b6d8f2a43462db60abd14ec08afa7c9e50a36ffe7a7e42587e149f6d2f3d47cb

Contents?: true

Size: 416 Bytes

Versions: 14

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

module Faker
  class Superhero < Base
    class << self
      def power
        fetch('superhero.power')
      end

      def prefix
        fetch('superhero.prefix')
      end

      def suffix
        fetch('superhero.suffix')
      end

      def descriptor
        fetch('superhero.descriptor')
      end

      def name
        parse('superhero.name')
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
faker-2.3.0 lib/faker/default/superhero.rb
faker-2.2.2 lib/faker/default/superhero.rb
faker-2.2.1 lib/faker/default/superhero.rb
faker-2.2.0 lib/faker/default/superhero.rb
faker-2.1.2 lib/faker/default/superhero.rb
faker-2.1.1 lib/faker/default/superhero.rb
faker-2.1.0 lib/faker/default/superhero.rb
faker-2.0.0 lib/faker/default/superhero.rb
faker-2.0 lib/faker/default/superhero.rb
faker-1.9.6 lib/faker/default/superhero.rb
faker-1.9.5 lib/faker/default/superhero.rb
faker-1.9.4 lib/faker/default/superhero.rb
faker-1.9.3 lib/faker/default/superhero.rb
faker-1.9.2 lib/faker/default/superhero.rb