Class: FortranFormatParser::NodeT
- Inherits:
-
Struct
- Object
- Struct
- FortranFormatParser::NodeT
- 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
228 229 230 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 228 def n @n end |
Instance Method Details
#count_args ⇒ Object
237 238 239 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 237 def count_args return 0 end |
#inspect ⇒ Object
240 241 242 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 240 def inspect return "TL#{n}" end |
#read(io, list, state) ⇒ Object
234 235 236 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 234 def read (io, list, state) io.pos = state.pos0 + n end |
#write(io, list, state) ⇒ Object
230 231 232 233 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 230 def write (io, list, state) io.pos = state.pos0 + n state.tab_move = true end |