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 1657
1657:       def initialize(varname, types, inivalue, arraysuffix, comment,
1658:                      nodoc=false)
1659:         @varname = varname
1660:         @types = types
1661:         @inivalue = inivalue
1662:         @arraysuffix = arraysuffix
1663:         @comment = comment
1664:         @nodoc = nodoc
1665:       end

Public Instance methods

If attr is included, true is returned

[Source]

      # File parsers/parse_f95.rb, line 1682
1682:       def include_attr?(attr)
1683:         return if !attr
1684:         @types.split(",").each{ |type|
1685:           return true if type.strip.chomp.upcase == attr.strip.chomp.upcase
1686:         }
1687:         return nil
1688:       end

[Source]

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

[Validate]