Class: Chem::SmilesAtom
- Inherits:
-
Object
- Object
- Chem::SmilesAtom
- Includes:
- Atom
- Defined in:
- lib/chem/db/smiles/smiparser.rb
Constant Summary
Constants included from Atom
Instance Attribute Summary collapse
-
#bond ⇒ Object
Returns the value of attribute bond.
-
#charge ⇒ Object
Returns the value of attribute charge.
-
#chiral ⇒ Object
Returns the value of attribute chiral.
-
#element ⇒ Object
Returns the value of attribute element.
-
#hydrogen_count ⇒ Object
Returns the value of attribute hydrogen_count.
-
#is_aromatic ⇒ Object
Returns the value of attribute is_aromatic.
-
#smiles_pos ⇒ Object
Returns the value of attribute smiles_pos.
Attributes included from Atom
#cdk_atom, #color, #label, #mass, #ob_atom, #rings, #v_pos, #visible, #x, #y, #z
Instance Method Summary collapse
Methods included from Atom
#atomic_number, #electro_negativity, #method_missing, #natural_bond_order, #to_mdl, #to_sybyl, #weight
Methods included from Transform::ThreeDimension
Methods included from Transform::TwoDimension
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Chem::Atom
Instance Attribute Details
#bond ⇒ Object
Returns the value of attribute bond.
336 337 338 |
# File 'lib/chem/db/smiles/smiparser.rb', line 336 def bond @bond end |
#charge ⇒ Object
Returns the value of attribute charge.
336 337 338 |
# File 'lib/chem/db/smiles/smiparser.rb', line 336 def charge @charge end |
#chiral ⇒ Object
Returns the value of attribute chiral.
336 337 338 |
# File 'lib/chem/db/smiles/smiparser.rb', line 336 def chiral @chiral end |
#element ⇒ Object
Returns the value of attribute element.
336 337 338 |
# File 'lib/chem/db/smiles/smiparser.rb', line 336 def element @element end |
#hydrogen_count ⇒ Object
Returns the value of attribute hydrogen_count.
336 337 338 |
# File 'lib/chem/db/smiles/smiparser.rb', line 336 def hydrogen_count @hydrogen_count end |
#is_aromatic ⇒ Object
Returns the value of attribute is_aromatic.
336 337 338 |
# File 'lib/chem/db/smiles/smiparser.rb', line 336 def is_aromatic @is_aromatic end |
#smiles_pos ⇒ Object
Returns the value of attribute smiles_pos.
336 337 338 |
# File 'lib/chem/db/smiles/smiparser.rb', line 336 def smiles_pos @smiles_pos end |
Instance Method Details
#inspect ⇒ Object
338 339 340 |
# File 'lib/chem/db/smiles/smiparser.rb', line 338 def inspect "{%s %s(%s)}" % [@bond, @element, smiles_pos ? smiles_pos.join("-") : ""] end |