Class: FortranFormatParser::NodeTR

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



262
263
264
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 262

def n
  @n
end

Instance Method Details

#count_argsObject



271
272
273
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 271

def count_args
  return 0
end

#inspectObject



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