Class: BibTeX::MetaComment
- Defined in:
- lib/bibtex/elements.rb
Overview
Represents text in a ‘.bib’ file, but outside of an actual BibTeX object; typically, such text is treated as a comment and is ignored by the parser. BibTeX-Ruby offers this class to allows for post-processing of this type of ‘meta’ comment. If you want the parser to include MetaComment
objects, you need to add :meta_comments
to the parser’s :include
option.
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Comment
#content, #content=, #initialize
Methods inherited from Element
#added_to_bibliography, #content, #initialize, #removed_from_bibliography, #to_hash, #to_json, #to_xml, #to_yaml
Constructor Details
This class inherits a constructor from BibTeX::Comment
Instance Method Details
#to_s ⇒ Object
257 258 259 |
# File 'lib/bibtex/elements.rb', line 257 def to_s @content end |