Class: RegularExpression::Bytecode::Insns::JumpValue

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

Overview

If it’s possible to read a character off the input and that character matches the char value, then do so and jump to the target instruction.

Instance Attribute Summary collapse

Instance Attribute Details

#charObject

Returns the value of attribute char

Returns:

  • (Object)

    the current value of char



111
112
113
# File 'lib/regular_expression/bytecode.rb', line 111

def char
  @char
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



111
112
113
# File 'lib/regular_expression/bytecode.rb', line 111

def target
  @target
end