In Files

  • rdoc/parser/f95.rb

Parent

Files

Class/Module Index [+]

Quicksearch

RDoc::Parser::F95::Fortran95Definition

Information of arguments of subroutines and functions in Fortran95

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

new(varname, types, inivalue, arraysuffix, comment, nodoc=false) click to toggle source
 
               # File rdoc/parser/f95.rb, line 1667
def initialize(varname, types, inivalue, arraysuffix, comment,
               nodoc=false)
  @varname = varname
  @types = types
  @inivalue = inivalue
  @arraysuffix = arraysuffix
  @comment = comment
  @nodoc = nodoc
end
            

Public Instance Methods

include_attr?(attr) click to toggle source

If attr is included, true is returned

 
               # File rdoc/parser/f95.rb, line 1691
def include_attr?(attr)
  return if !attr
  @types.split(",").each{ |type|
    return true if type.strip.chomp.upcase == attr.strip.chomp.upcase
  }
  return nil
end
            
to_s() click to toggle source
 
               # File rdoc/parser/f95.rb, line 1677
    def to_s
      return <<-EOF
<Fortran95Definition: 
varname=#{@varname}, types=#{types},
inivalue=#{@inivalue}, arraysuffix=#{@arraysuffix}, nodoc=#{@nodoc}, 
comment=
#{@comment}
>
EOF
    end