Class: Tcepsni::Vendor::StringScanner
- Inherits:
-
Object
- Object
- Tcepsni::Vendor::StringScanner
- Defined in:
- lib/tcepsni.rb
Instance Attribute Summary collapse
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
-
#rest ⇒ Object
readonly
Returns the value of attribute rest.
-
#scanned ⇒ Object
readonly
Returns the value of attribute scanned.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(pos:, total:, scanned:, rest:) ⇒ StringScanner
constructor
A new instance of StringScanner.
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
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
235 236 237 |
# File 'lib/tcepsni.rb', line 235 def pos @pos end |
#rest ⇒ Object (readonly)
Returns the value of attribute rest.
235 236 237 |
# File 'lib/tcepsni.rb', line 235 def rest @rest end |
#scanned ⇒ Object (readonly)
Returns the value of attribute scanned.
235 236 237 |
# File 'lib/tcepsni.rb', line 235 def scanned @scanned end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
235 236 237 |
# File 'lib/tcepsni.rb', line 235 def total @total end |