Class: Tcepsni::Vendor::StringScanner

Inherits:
Object
  • Object
show all
Defined in:
lib/tcepsni.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pos:, total:, scanned:, rest:) ⇒ StringScanner

Returns a new instance of StringScanner.



237
238
239
240
241
242
# File 'lib/tcepsni.rb', line 237

def initialize(pos:, total:, scanned:, rest:)
  @pos = pos
  @total = total
  @scanned = scanned
  @rest = rest
end

Instance Attribute Details

#posObject (readonly)

Returns the value of attribute pos.



235
236
237
# File 'lib/tcepsni.rb', line 235

def pos
  @pos
end

#restObject (readonly)

Returns the value of attribute rest.



235
236
237
# File 'lib/tcepsni.rb', line 235

def rest
  @rest
end

#scannedObject (readonly)

Returns the value of attribute scanned.



235
236
237
# File 'lib/tcepsni.rb', line 235

def scanned
  @scanned
end

#totalObject (readonly)

Returns the value of attribute total.



235
236
237
# File 'lib/tcepsni.rb', line 235

def total
  @total
end