Class: FortranFormatParser::NodeH
- Inherits:
-
Struct
- Object
- Struct
- FortranFormatParser::NodeH
- Defined in:
- ext/fortio/lib/fortio/fortran_format.rb,
ext/fortio/lib/fortio/fortran_format.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#string ⇒ Object
Returns the value of attribute string.
Instance Method Summary collapse
- #count_args ⇒ Object
- #inspect ⇒ Object
- #read(io, list, state) ⇒ Object
- #write(io, list, state) ⇒ Object
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count
353 354 355 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 353 def count @count end |
#string ⇒ Object
Returns the value of attribute string
353 354 355 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 353 def string @string end |
Instance Method Details
#count_args ⇒ Object
361 362 363 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 361 def count_args return count end |
#inspect ⇒ Object
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 |