Class: RegularExpression::Bytecode::Insns::GuardEnd

Inherits:
Struct
  • Object
show all
Defined in:
lib/regular_expression/bytecode.rb

Overview

If we’re at the end of the string, then jump to the then instruction. Otherwise fail the match at the current index.

Instance Attribute Summary collapse

Instance Attribute Details

#guardedObject

Returns the value of attribute guarded

Returns:

  • (Object)

    the current value of guarded



103
104
105
# File 'lib/regular_expression/bytecode.rb', line 103

def guarded
  @guarded
end