Class: AsciiChem::PeriodicTable::Element

Inherits:
Struct
  • Object
show all
Defined in:
lib/asciichem/periodic_table.rb

Instance Attribute Summary collapse

Instance Attribute Details

#atomic_numberObject

Returns the value of attribute atomic_number

Returns:

  • (Object)

    the current value of atomic_number



13
14
15
# File 'lib/asciichem/periodic_table.rb', line 13

def atomic_number
  @atomic_number
end

#max_valenceObject

Returns the value of attribute max_valence

Returns:

  • (Object)

    the current value of max_valence



13
14
15
# File 'lib/asciichem/periodic_table.rb', line 13

def max_valence
  @max_valence
end

#symbolObject

Returns the value of attribute symbol

Returns:

  • (Object)

    the current value of symbol



13
14
15
# File 'lib/asciichem/periodic_table.rb', line 13

def symbol
  @symbol
end