Class: IpynbDiff::TransformedNotebook
- Inherits:
-
Object
- Object
- IpynbDiff::TransformedNotebook
- Defined in:
- lib/transformed_notebook.rb
Overview
Notebook that was transformed into md, including location of source cells
Instance Attribute Summary collapse
-
#blocks ⇒ Object
readonly
Returns the value of attribute blocks.
Instance Method Summary collapse
Instance Attribute Details
#blocks ⇒ Object (readonly)
Returns the value of attribute blocks.
6 7 8 |
# File 'lib/transformed_notebook.rb', line 6 def blocks @blocks end |
Instance Method Details
#as_text ⇒ Object
8 9 10 |
# File 'lib/transformed_notebook.rb', line 8 def as_text @blocks.map { |b| b[:content] }.join("\n") end |