Class: Pocketbook::BookTemplate::Context

Inherits:
Struct
  • Object
show all
Defined in:
lib/pocketbook/book_template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#body_htmlObject

Returns the value of attribute body_html

Returns:

  • (Object)

    the current value of body_html



5
6
7
# File 'lib/pocketbook/book_template.rb', line 5

def body_html
  @body_html
end

#core_cssObject

Returns the value of attribute core_css

Returns:

  • (Object)

    the current value of core_css



5
6
7
# File 'lib/pocketbook/book_template.rb', line 5

def core_css
  @core_css
end

#escape_htmlObject

Returns the value of attribute escape_html

Returns:

  • (Object)

    the current value of escape_html



5
6
7
# File 'lib/pocketbook/book_template.rb', line 5

def escape_html
  @escape_html
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



5
6
7
# File 'lib/pocketbook/book_template.rb', line 5

def 
  @metadata
end

#styles_cssObject

Returns the value of attribute styles_css

Returns:

  • (Object)

    the current value of styles_css



5
6
7
# File 'lib/pocketbook/book_template.rb', line 5

def styles_css
  @styles_css
end

#toc_htmlObject

Returns the value of attribute toc_html

Returns:

  • (Object)

    the current value of toc_html



5
6
7
# File 'lib/pocketbook/book_template.rb', line 5

def toc_html
  @toc_html
end

Instance Method Details

#get_bindingObject



18
19
20
# File 'lib/pocketbook/book_template.rb', line 18

def get_binding
  binding
end

#h(value) ⇒ Object



14
15
16
# File 'lib/pocketbook/book_template.rb', line 14

def h(value)
  escape_html.call(value)
end