Class: Brandish::Processor::Context::Skip

Inherits:
Struct
  • Object
show all
Defined in:
lib/brandish/processor/context.rb

Overview

A "skip" construct. This makes the node be skipped through processing for the rest of the processors. This is automatically applied to all nodes that are Brandish::Parser::Node#update_prevented?.

Once the skip construct has been passed through the processing, it is automatically unwrapped, returning the original node.

Instance Attribute Summary collapse

Instance Attribute Details

#nodeObject

Returns the value of attribute node

Returns:

  • (Object)

    the current value of node



23
24
25
# File 'lib/brandish/processor/context.rb', line 23

def node
  @node
end