Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • rdoc/parsers/parse_f95.rb

Parent

Files

Class/Module Index [+]

Quicksearch

RDoc::Fortran95parser::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/parsers/parse_f95.rb, line 1671
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/parsers/parse_f95.rb, line 1695
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/parsers/parse_f95.rb, line 1681
      def to_s
        return <<-EOF
<Fortran95Definition: 
  varname=#{@varname}, types=#{types},
  inivalue=#{@inivalue}, arraysuffix=#{@arraysuffix}, nodoc=#{@nodoc}, 
  comment=
#{@comment}
>
EOF
      end