Class RDoc::Fortran95parser::Fortran95Definition
In: lib/rdoc/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 lib/rdoc/parsers/parse_f95.rb, line 1673
1673:       def initialize(varname, types, inivalue, arraysuffix, comment,
1674:                      nodoc=false)
1675:         @varname = varname
1676:         @types = types
1677:         @inivalue = inivalue
1678:         @arraysuffix = arraysuffix
1679:         @comment = comment
1680:         @nodoc = nodoc
1681:       end

Public Instance methods

If attr is included, true is returned

[Source]

      # File lib/rdoc/parsers/parse_f95.rb, line 1698
1698:       def include_attr?(attr)
1699:         return if !attr
1700:         @types.split(",").each{ |type|
1701:           return true if type.strip.chomp.upcase == attr.strip.chomp.upcase
1702:         }
1703:         return nil
1704:       end

[Source]

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

[Validate]