Class: Jekyll::Latex::Pdf::KramdownData
- Inherits:
-
Object
- Object
- Jekyll::Latex::Pdf::KramdownData
- Defined in:
- lib/jekyll/latex/pdf/kramdown_data.rb
Overview
Hold data for kramdown renderer. We have some extra things added to the default post content.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #add(*args) ⇒ Object
-
#initialize(*args) ⇒ KramdownData
constructor
A new instance of KramdownData.
Constructor Details
#initialize(*args) ⇒ KramdownData
Returns a new instance of KramdownData.
11 12 13 |
# File 'lib/jekyll/latex/pdf/kramdown_data.rb', line 11 def initialize(*args) add(*args) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
20 21 22 |
# File 'lib/jekyll/latex/pdf/kramdown_data.rb', line 20 def data @data end |
Instance Method Details
#add(*args) ⇒ Object
15 16 17 18 |
# File 'lib/jekyll/latex/pdf/kramdown_data.rb', line 15 def add(*args) @data ||= {} @data.merge! hash_args(*args) end |