Class: AsciiChem::Model::Name
- Inherits:
-
Struct
- Object
- Struct
- AsciiChem::Model::Name
- Defined in:
- lib/asciichem/model/name.rb
Overview
A molecule name. Maps to CML <name> element. Carries the
name content plus optional convention and dict_ref
attributes for names sourced from dictionaries (IUPAC, CAS,
trivial, etc.).
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#convention ⇒ Object
Returns the value of attribute convention.
-
#dict_ref ⇒ Object
Returns the value of attribute dict_ref.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
9 10 11 |
# File 'lib/asciichem/model/name.rb', line 9 def content @content end |
#convention ⇒ Object
Returns the value of attribute convention
9 10 11 |
# File 'lib/asciichem/model/name.rb', line 9 def convention @convention end |
#dict_ref ⇒ Object
Returns the value of attribute dict_ref
9 10 11 |
# File 'lib/asciichem/model/name.rb', line 9 def dict_ref @dict_ref end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/asciichem/model/name.rb', line 10 def to_s content.to_s end |