Class: FortranFormatParser::NodeTR
- Inherits:
-
Struct
- Object
- Struct
- FortranFormatParser::NodeTR
- Defined in:
- ext/fortio/lib/fortio/fortran_format.rb,
ext/fortio/lib/fortio/fortran_format.rb
Instance Attribute Summary collapse
-
#n ⇒ Object
Returns the value of attribute n.
Instance Method Summary collapse
- #count_args ⇒ Object
- #inspect ⇒ Object
- #read(io, list, state) ⇒ Object
- #write(io, list, state) ⇒ Object
Instance Attribute Details
#n ⇒ Object
Returns the value of attribute n
262 263 264 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 262 def n @n end |
Instance Method Details
#count_args ⇒ Object
271 272 273 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 271 def count_args return 0 end |
#inspect ⇒ Object
274 275 276 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 274 def inspect return "TR#{n}" end |
#read(io, list, state) ⇒ Object
268 269 270 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 268 def read (io, list, state) io.pos += n end |
#write(io, list, state) ⇒ Object
264 265 266 267 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 264 def write (io, list, state) io.pos += n state.tab_move = true end |