Class RDoc::Fortran95parser::Fortran95Definition
In: parsers/parse_f95.rb
Parent: Object

Information of arguments of subroutines and functions in Fortran95

Methods

include_attr?   new   to_s  

Attributes

arraysuffix  [R]  Suffix of array

配列接尾詞

comment  [RW]  Comments

行の末尾にかかれるコメント

doc_priority  [RW]  Priority of documentation

ドキュメントの優先度

inivalue  [R]  Initial Value

初期値

nodoc  [RW]  Flag of non documentation

ドキュメント出力しないフラグ

types  [R]  Types of variable

データ型情報

varname  [R]  Name of variable

変数名

Public Class methods

[Source]

      # File parsers/parse_f95.rb, line 2630
2630:       def initialize(varname, types, inivalue, arraysuffix, comment,
2631:                      nodoc=false, doc_priority=50)
2632:         @varname = varname
2633:         @types = types
2634:         @inivalue = inivalue
2635:         @arraysuffix = arraysuffix
2636:         @comment = comment
2637:         @nodoc = nodoc
2638:         @doc_priority = doc_priority
2639:       end

Public Instance methods

If attr is included, true is returned

[Source]

      # File parsers/parse_f95.rb, line 2656
2656:       def include_attr?(attr)
2657:         return if !attr
2658:         @types.split(",").each{ |type|
2659:           return true if type.strip.chomp.upcase == attr.strip.chomp.upcase
2660:         }
2661:         return nil
2662:       end

[Source]

      # File parsers/parse_f95.rb, line 2641
2641:       def to_s
2642:         return "<Fortran95Definition:\nvarname=\#{@varname}, types=\#{types},\ninivalue=\#{@inivalue}, arraysuffix=\#{@arraysuffix}, nodoc=\#{@nodoc},\ncomment=\n\#{@comment}\n>\n"
2643:       end

[Validate]