Class: Jekyll::Latex::Pdf::KramdownData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#dataObject (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