Class: FortranFormatParser::NodeTL

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



245
246
247
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 245

def n
  @n
end

Instance Method Details

#count_argsObject



254
255
256
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 254

def count_args
  return 0
end

#inspectObject



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