class Faker::Science

Public Class Methods

element() click to toggle source

Produces the name of a element.

@return [String]

@example

Faker::Science.element #=> "Carbon"

@faker.version 1.8.5

# File lib/faker/default/science.rb, line 15
def element
  fetch('science.element')
end
element_symbol() click to toggle source

Produces the symbol of an element.

@return [String]

@example

Faker::Science.element_symbol #=> "Pb"

@faker.version 1.9.0

# File lib/faker/default/science.rb, line 28
def element_symbol
  fetch('science.element_symbol')
end
scientist() click to toggle source

Produces the name of a scientist.

@return [String]

@example

Faker::Science.scientist #=> "Isaac Newton"

@faker.version 1.8.5

# File lib/faker/default/science.rb, line 41
def scientist
  fetch('science.scientist')
end