Class: Pocketbook::BookTemplate::Context
- Inherits:
-
Struct
- Object
- Struct
- Pocketbook::BookTemplate::Context
- Defined in:
- lib/pocketbook/book_template.rb
Instance Attribute Summary collapse
-
#body_html ⇒ Object
Returns the value of attribute body_html.
-
#core_css ⇒ Object
Returns the value of attribute core_css.
-
#escape_html ⇒ Object
Returns the value of attribute escape_html.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#styles_css ⇒ Object
Returns the value of attribute styles_css.
-
#toc_html ⇒ Object
Returns the value of attribute toc_html.
Instance Method Summary collapse
Instance Attribute Details
#body_html ⇒ Object
Returns the value of attribute body_html
5 6 7 |
# File 'lib/pocketbook/book_template.rb', line 5 def body_html @body_html end |
#core_css ⇒ Object
Returns the value of attribute core_css
5 6 7 |
# File 'lib/pocketbook/book_template.rb', line 5 def core_css @core_css end |
#escape_html ⇒ Object
Returns the value of attribute escape_html
5 6 7 |
# File 'lib/pocketbook/book_template.rb', line 5 def escape_html @escape_html end |
#metadata ⇒ Object
Returns the value of attribute metadata
5 6 7 |
# File 'lib/pocketbook/book_template.rb', line 5 def @metadata end |
#styles_css ⇒ Object
Returns the value of attribute styles_css
5 6 7 |
# File 'lib/pocketbook/book_template.rb', line 5 def styles_css @styles_css end |
#toc_html ⇒ Object
Returns the value of attribute toc_html
5 6 7 |
# File 'lib/pocketbook/book_template.rb', line 5 def toc_html @toc_html end |
Instance Method Details
#get_binding ⇒ Object
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 |