Class: FortranFormatParser::NodeSp
- Inherits:
-
Struct
- Object
- Struct
- FortranFormatParser::NodeSp
- Defined in:
- ext/fortio/lib/fortio/fortran_format.rb,
ext/fortio/lib/fortio/fortran_format.rb
Instance Attribute Summary collapse
-
#sign ⇒ Object
Returns the value of attribute sign.
Instance Method Summary collapse
- #count_args ⇒ Object
- #inspect ⇒ Object
- #read(io, list, state) ⇒ Object
- #write(io, list, state) ⇒ Object
Instance Attribute Details
#sign ⇒ Object
Returns the value of attribute sign
312 313 314 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 312 def sign @sign end |
Instance Method Details
#count_args ⇒ Object
319 320 321 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 319 def count_args return 0 end |
#inspect ⇒ Object
322 323 324 325 326 327 328 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 322 def inspect if sign return "SP" else return "SS" end end |
#read(io, list, state) ⇒ Object
317 318 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 317 def read (io, list, state) end |
#write(io, list, state) ⇒ Object
314 315 316 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 314 def write (io, list, state) state.sign = sign end |