Class: FortranFormatParser::NodeTL
- Inherits:
-
Struct
- Object
- Struct
- FortranFormatParser::NodeTL
- 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
245 246 247 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 245 def n @n end |
Instance Method Details
#count_args ⇒ Object
254 255 256 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 254 def count_args return 0 end |
#inspect ⇒ Object
257 258 259 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 257 def inspect return "TL#{n}" end |
#read(io, list, state) ⇒ Object
251 252 253 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 251 def read (io, list, state) io.pos -= n end |
#write(io, list, state) ⇒ Object
247 248 249 250 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 247 def write (io, list, state) io.pos -= n state.tab_move = true end |