Class: RubyChem::Lewis

Inherits:
Object
  • Object
show all
Defined in:
lib/rubychem/lewis.rb

Constant Summary collapse

Valence =
{"O" => 6, "C" => 4}
Species =
[["C"], ["O", "2"]]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLewis

Returns a new instance of Lewis.



7
8
9
10
# File 'lib/rubychem/lewis.rb', line 7

def initialize
  @species = Species
  determine_configuration
end

Instance Attribute Details

#structureObject

Returns the value of attribute structure.



3
4
5
# File 'lib/rubychem/lewis.rb', line 3

def structure
  @structure
end