Class: Paru::PandocFilter::LineBlock

Inherits:
List show all
Defined in:
lib/paru/filter/line_block.rb

Overview

A LineBlock is a List of Lists of Inline nodes

Instance Attribute Summary

Attributes inherited from Node

#children, #parent

Instance Method Summary collapse

Methods inherited from List

#ast_contents, #has_block?, #to_array

Methods inherited from Block

#is_block?

Methods inherited from Node

#ast_contents, #ast_type, #can_act_as_both_block_and_inline?, #each, from_markdown, #get_replacement, #has_been_replaced?, #has_block?, #has_children?, #has_class?, #has_inline?, #has_parent?, #has_string?, #is_block?, #is_inline?, #is_leaf?, #is_node?, #is_root?, #markdown, #markdown=, #toMetadata, #to_ast, #to_s, #type

Methods included from ASTManipulation

#append, #delete, #each_depth_first, #find_index, #get, #insert, #prepend, #remove_at, #replace, #replace_at

Constructor Details

#initialize(contents) ⇒ LineBlock

Create a new LineBlock node based on contents

Parameters:

  • contents (Array)

    the contents of the LineBlock



30
31
32
# File 'lib/paru/filter/line_block.rb', line 30

def initialize(contents)
  super(contents, Para)
end