Class: FortranFormatParser::NodeSp

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

#signObject

Returns the value of attribute sign

Returns:

  • (Object)

    the current value of sign



312
313
314
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 312

def sign
  @sign
end

Instance Method Details

#count_argsObject



319
320
321
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 319

def count_args
  return 0
end

#inspectObject



322
323
324
325
326
327
328
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 322

def inspect
  if sign
    return "SP"
  else
    return "SS"
  end
end

#read(io, list, state) ⇒ Object



317
318
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 317

def read (io, list, state)
end

#write(io, list, state) ⇒ Object



314
315
316
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 314

def write (io, list, state)
  state.sign = sign
end