Class: Paru::PandocFilter::Inline

Inherits:
Node
  • Object
show all
Includes:
InnerMarkdown
Defined in:
lib/paru/filter/inline.rb

Overview

An Inline node

Instance Attribute Summary

Attributes inherited from Node

#children, #parent

Instance Method Summary collapse

Methods included from InnerMarkdown

#inner_markdown, #inner_markdown=

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_parent?, #has_string?, #is_block?, #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) ⇒ Inline

Create a new Inline node with contents

Parameters:

  • contents (Array)

    the contents of this inline node



33
34
35
# File 'lib/paru/filter/inline.rb', line 33

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

Instance Method Details

#has_inline?Boolean

Has this Inline node inline contents? Of course!

Returns:

  • (Boolean)

    true



47
48
49
# File 'lib/paru/filter/inline.rb', line 47

def has_inline?
  true
end

#is_inline?Boolean

Is this Inline node inline? Of course!

Returns:

  • (Boolean)

    true



40
41
42
# File 'lib/paru/filter/inline.rb', line 40

def is_inline?
  true
end