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
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus