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

初期値

types  [R]  Types of variable

型情報

varname  [R]  Name of variable

変数名

Public Class methods

[Source]

      # File parsers/parse_f95.rb, line 1500
1500:       def initialize(varname, types, inivalue, arraysuffix, comment)
1501:         @varname = varname
1502:         @types = types
1503:         @inivalue = inivalue
1504:         @arraysuffix = arraysuffix
1505:         @comment = comment
1506:       end

Public Instance methods

If attr is included, true is returned

[Source]

      # File parsers/parse_f95.rb, line 1523
1523:       def include_attr?(attr)
1524:         return if !attr
1525:         @types.split(",").each{ |type|
1526:           return true if type.strip.chomp.upcase == attr.strip.chomp.upcase
1527:         }
1528:         return nil
1529:       end

[Source]

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

[Validate]