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