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

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

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 2072
2072:       def initialize(varname, types, inivalue, arraysuffix, comment,
2073:                      nodoc=false)
2074:         @varname = varname
2075:         @types = types
2076:         @inivalue = inivalue
2077:         @arraysuffix = arraysuffix
2078:         @comment = comment
2079:         @nodoc = nodoc
2080:       end

Public Instance methods

If attr is included, true is returned

[Source]

      # File parsers/parse_f95.rb, line 2097
2097:       def include_attr?(attr)
2098:         return if !attr
2099:         @types.split(",").each{ |type|
2100:           return true if type.strip.chomp.upcase == attr.strip.chomp.upcase
2101:         }
2102:         return nil
2103:       end

[Source]

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

[Validate]