Class: FortranFormatParser::NodeB

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

#zeroObject

Returns the value of attribute zero

Returns:

  • (Object)

    the current value of zero



331
332
333
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 331

def zero
  @zero
end

Instance Method Details

#count_argsObject

end



341
342
343
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 341

def count_args
  return 0
end

#inspectObject



344
345
346
347
348
349
350
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 344

def inspect
  if zero
    return "BZ"
  else
    return "BN"
  end
end

#read(io, list, state) ⇒ Object



335
336
337
338
339
340
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 335

def read (io, list, state)
  state.zero = zero
#      if zero
#        warn "FortranFormat: BZ is not supported descriptor"
#      end
end

#write(io, list, state) ⇒ Object



333
334
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 333

def write (io, list, state)
end