Class: Chem::MDL::RxnAtom

Inherits:
Object
  • Object
show all
Includes:
Atom
Defined in:
lib/chem/db/mdl.rb

Constant Summary

Constants included from Atom

Atom::MDLAtomLineFormat

Instance Attribute Summary collapse

Attributes included from Atom

#charge, #color, #mass, #v_pos, #visible, #z

Instance Method Summary collapse

Methods included from Atom

#atomic_number, #electro_negativity, #natural_bond_order, #to_mdl, #to_sybyl, #weight

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



248
249
250
# File 'lib/chem/db/mdl.rb', line 248

def method_missing name, *args
  @representative.send(name, *args)
end

Instance Attribute Details

#productObject

Returns the value of attribute product.



242
243
244
# File 'lib/chem/db/mdl.rb', line 242

def product
  @product
end

#reactantObject

Returns the value of attribute reactant.



242
243
244
# File 'lib/chem/db/mdl.rb', line 242

def reactant
  @reactant
end

Instance Method Details

#elementObject



260
# File 'lib/chem/db/mdl.rb', line 260

def element ; @representative.element ; end

#xObject



258
# File 'lib/chem/db/mdl.rb', line 258

def x       ; @representative.x       ; end

#yObject



259
# File 'lib/chem/db/mdl.rb', line 259

def y       ; @representative.y       ; end