Class: FortranFormatParser::NodeP
- Inherits:
-
Struct
- Object
- Struct
- FortranFormatParser::NodeP
- Defined in:
- ext/fortio/lib/fortio/fortran_format.rb,
ext/fortio/lib/fortio/fortran_format.rb
Instance Attribute Summary collapse
-
#scale ⇒ Object
Returns the value of attribute scale.
Instance Method Summary collapse
- #count_args ⇒ Object
- #inspect ⇒ Object
- #read(io, list, state) ⇒ Object
- #write(io, list, state) ⇒ Object
Instance Attribute Details
#scale ⇒ Object
Returns the value of attribute scale
296 297 298 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 296 def scale @scale end |
Instance Method Details
#count_args ⇒ Object
304 305 306 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 304 def count_args return 0 end |
#inspect ⇒ Object
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 |