Class: BibTeX::MetaContent
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’ content. If you want the parser to include MetaComment
objects, you need to add :meta_content
to the parser’s :include
option.
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(content = '') ⇒ MetaContent
constructor
A new instance of MetaContent.
- #to_s(_options = {}) ⇒ Object
Methods inherited from Element
#<=>, #added_to_bibliography, #digest, #has_type?, #inspect, #join, #matches?, #meets?, #meets_all?, #meets_any?, #names, parse, #removed_from_bibliography, #replace, #to_hash, #to_json, #to_xml, #to_yaml, #type, #values_at
Constructor Details
#initialize(content = '') ⇒ MetaContent
Returns a new instance of MetaContent.
379 380 381 |
# File 'lib/bibtex/elements.rb', line 379 def initialize(content = '') @content = content end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
377 378 379 |
# File 'lib/bibtex/elements.rb', line 377 def content @content end |
Instance Method Details
#to_s(_options = {}) ⇒ Object
383 384 385 |
# File 'lib/bibtex/elements.rb', line 383 def to_s( = {}) @content end |