Class: IpynbDiff::TransformedNotebook

Inherits:
Object
  • Object
show all
Defined in:
lib/transformed_notebook.rb

Overview

Notebook that was transformed into md, including location of source cells

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blocksObject (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_textObject



8
9
10
# File 'lib/transformed_notebook.rb', line 8

def as_text
  @blocks.map { |b| b[:content] }.join("\n")
end