Sha256: 2384514cce62c25e9c73612d01f10a934bdb52d5947c0a5402090d84ecd6d247

Contents?: true

Size: 892 Bytes

Versions: 18

Compression:

Stored size: 892 Bytes

Contents

# frozen_string_literal: true

module Faker
  class Science < Base
    class << self
      ##
      # Produces the name of a element.
      #
      # @return [String]
      #
      # @example
      #   Faker::Science.element #=> "Carbon"
      #
      # @faker.version 1.8.5
      def element
        fetch('science.element')
      end

      ##
      # Produces the symbol of an element.
      #
      # @return [String]
      #
      # @example
      #   Faker::Science.element_symbol #=> "Pb"
      #
      # @faker.version 1.9.0
      def element_symbol
        fetch('science.element_symbol')
      end

      ##
      # Produces the name of a scientist.
      #
      # @return [String]
      #
      # @example
      #   Faker::Science.scientist #=> "Isaac Newton"
      #
      # @faker.version 1.8.5
      def scientist
        fetch('science.scientist')
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
faker-2.17.0 lib/faker/default/science.rb
faker-2.16.0 lib/faker/default/science.rb
faker-2.15.1 lib/faker/default/science.rb
faker-2.15.0 lib/faker/default/science.rb
faker-2.14.0 lib/faker/default/science.rb
faker-2.13.0 lib/faker/default/science.rb
faker-2.12.0 lib/faker/default/science.rb
faker-2.11.0 lib/faker/default/science.rb
faker-2.10.2 lib/faker/default/science.rb
faker-2.10.1 lib/faker/default/science.rb
faker-2.10.0 lib/faker/default/science.rb
faker-2.9.0 lib/faker/default/science.rb
faker-2.8.1 lib/faker/default/science.rb
faker-2.8.0 lib/faker/default/science.rb
faker-2.7.0 lib/faker/default/science.rb
faker-2.6.0 lib/faker/default/science.rb
faker-2.5.0 lib/faker/default/science.rb
faker-2.4.0 lib/faker/default/science.rb