Class: FortranFormatParser::NodeH

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



353
354
355
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 353

def count
  @count
end

#stringObject

Returns the value of attribute string

Returns:

  • (Object)

    the current value of string



353
354
355
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 353

def string
  @string
end

Instance Method Details

#count_argsObject



361
362
363
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 361

def count_args
  return count
end

#inspectObject



364
365
366
367
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 364

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

#read(io, list, state) ⇒ Object



358
359
360
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 358

def read (io, list, state)
  raise "format h is not implemented for reading"
end

#write(io, list, state) ⇒ Object



355
356
357
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 355

def write (io, list, state)
  io << string
end