Class: FortranFormatParser::NodeB
- Inherits:
-
Struct
- Object
- Struct
- FortranFormatParser::NodeB
- Defined in:
- ext/fortio/lib/fortio/fortran_format.rb,
ext/fortio/lib/fortio/fortran_format.rb
Instance Attribute Summary collapse
-
#zero ⇒ Object
Returns the value of attribute zero.
Instance Method Summary collapse
-
#count_args ⇒ Object
end.
- #inspect ⇒ Object
- #read(io, list, state) ⇒ Object
- #write(io, list, state) ⇒ Object
Instance Attribute Details
#zero ⇒ Object
Returns the value of attribute zero
331 332 333 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 331 def zero @zero end |
Instance Method Details
#count_args ⇒ Object
end
341 342 343 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 341 def count_args return 0 end |
#inspect ⇒ Object
344 345 346 347 348 349 350 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 344 def inspect if zero return "BZ" else return "BN" end end |
#read(io, list, state) ⇒ Object
335 336 337 338 339 340 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 335 def read (io, list, state) state.zero = zero # if zero # warn "FortranFormat: BZ is not supported descriptor" # end end |
#write(io, list, state) ⇒ Object
333 334 |
# File 'ext/fortio/lib/fortio/fortran_format.rb', line 333 def write (io, list, state) end |