Class: RegularExpression::Bytecode::Insns::JumpRange

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 is within the range of possible values, then do so and jump to the target instruction.

Instance Attribute Summary collapse

Instance Attribute Details

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



121
122
123
# File 'lib/regular_expression/bytecode.rb', line 121

def left
  @left
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



121
122
123
# File 'lib/regular_expression/bytecode.rb', line 121

def right
  @right
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



121
122
123
# File 'lib/regular_expression/bytecode.rb', line 121

def target
  @target
end