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_state() click to toggle source

Produces the state of an element.

@return [String]

@example

Faker::Science.element_state #=> "Liquid"

@faker.version next

# File lib/faker/default/science.rb, line 41
def element_state
  fetch('science.element_state')
end
element_subcategory() click to toggle source

Produces the subcategory of an element.

@return [String]

@example

Faker::Science.element_subcategory #=> "Reactive nonmetal"

@faker.version next

# File lib/faker/default/science.rb, line 54
def element_subcategory
  fetch('science.element_subcategory')
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 67
def scientist
  fetch('science.scientist')
end