Class: Spectre::Directives::ResetDirective

Inherits:
Spectre::Directive show all
Defined in:
lib/spectre/generic/directives.rb

Overview

Resets all previously applied directives. Resets the skipper and the transformation to their respective default values.

Shortcut: reset_d

Instance Attribute Summary

Attributes inherited from Spectre::Directive

#iter_skipper, #iter_transformation, #pre_skip

Attributes inherited from Node

#actions, #backtrace, #left, #parent, #parser, #policy, #right, #symbols

Instance Method Summary collapse

Methods inherited from Spectre::Directive

#[], #initialize, #parse, policy, policy!, skipper!, transformation!

Methods inherited from Node

#%, #&, #*, #**, #+, #-, #-@, #>>, #[], #^, #backtrack, #chain, #closure, #closure=, #closure?, #find, #initialize, #initialize_copy, #leaf?, #parse, #replace_with, #root?, #shallow_copy, #to_p, #|, #~@

Constructor Details

This class inherits a constructor from Spectre::Directive

Instance Method Details

#inspectObject



96
97
98
# File 'lib/spectre/generic/directives.rb', line 96

def inspect
    "[reset_d:#{@left.inspect}]"
end