Class: FortranFormatParser::NodeX

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

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



279
280
281
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 279

def count
  @count
end

Instance Method Details

#count_argsObject



287
288
289
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 287

def count_args
  return 0
end

#inspectObject



290
291
292
293
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 290

def inspect
  count_str = count == 1 ? "" : count.to_s
  return "#{count_str}X"
end

#read(io, list, state) ⇒ Object



284
285
286
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 284

def read (io, list, state)
  io.read(count)
end

#write(io, list, state) ⇒ Object



281
282
283
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 281

def write (io, list, state)
  io << " " * count
end