Class: FortranFormatParser::NodeT

Inherits:
Struct
  • Object
show all
Defined in:
ext/fortio/lib/fortio/fortran_format.rb,
ext/fortio/lib/fortio/fortran_format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nObject

Returns the value of attribute n

Returns:

  • (Object)

    the current value of n



228
229
230
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 228

def n
  @n
end

Instance Method Details

#count_argsObject



237
238
239
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 237

def count_args
  return 0
end

#inspectObject



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