Class: Typst::HtmlExperimental
Instance Attribute Summary collapse
-
#bytes ⇒ Object
Returns the value of attribute bytes.
Attributes inherited from Base
Instance Method Summary collapse
- #document ⇒ Object (also: #markup)
-
#initialize(input, root: ".", font_paths: []) ⇒ HtmlExperimental
constructor
A new instance of HtmlExperimental.
Methods inherited from Base
Constructor Details
#initialize(input, root: ".", font_paths: []) ⇒ HtmlExperimental
Returns a new instance of HtmlExperimental.
172 173 174 175 |
# File 'lib/typst.rb', line 172 def initialize(input, root: ".", font_paths: []) super(input, root: root, font_paths: font_paths) @bytes = Typst::_to_html(self.input, self.root, self.font_paths, File.dirname(__FILE__), false, {})[0] end |
Instance Attribute Details
#bytes ⇒ Object
Returns the value of attribute bytes.
170 171 172 |
# File 'lib/typst.rb', line 170 def bytes @bytes end |
Instance Method Details
#document ⇒ Object Also known as: markup
177 178 179 |
# File 'lib/typst.rb', line 177 def document bytes.pack("C*").to_s end |