Class: FortranFormatParser::NodeP

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

#scaleObject

Returns the value of attribute scale

Returns:

  • (Object)

    the current value of scale



296
297
298
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 296

def scale
  @scale
end

Instance Method Details

#count_argsObject



304
305
306
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 304

def count_args
  return 0
end

#inspectObject



307
308
309
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 307

def inspect
  return "#{scale}P"
end

#read(io, list, state) ⇒ Object



301
302
303
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 301

def read (io, list, state)
  state.scale = scale      
end

#write(io, list, state) ⇒ Object



298
299
300
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 298

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