Class: FortranFormatParser::NodeX
- Inherits:
-
Struct
- Object
- Struct
- FortranFormatParser::NodeX
- 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.
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
279 280 281 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 279 def count @count end |
Instance Method Details
#count_args ⇒ Object
287 288 289 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 287 def count_args return 0 end |
#inspect ⇒ Object
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 |