Class: SecID::Match

Inherits:
Data
  • Object
show all
Defined in:
lib/sec_id/scanner.rb

Overview

Immutable value object representing a matched identifier found in text.

Instance Attribute Summary collapse

Instance Attribute Details

#identifierObject (readonly)

Returns the value of attribute identifier

Returns:

  • (Object)

    the current value of identifier



5
6
7
# File 'lib/sec_id/scanner.rb', line 5

def identifier
  @identifier
end

#rangeObject (readonly)

Returns the value of attribute range

Returns:

  • (Object)

    the current value of range



5
6
7
# File 'lib/sec_id/scanner.rb', line 5

def range
  @range
end

#rawObject (readonly)

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



5
6
7
# File 'lib/sec_id/scanner.rb', line 5

def raw
  @raw
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/sec_id/scanner.rb', line 5

def type
  @type
end