Class RDoc::Fortran95parser::Fortran95Definition
In: 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 rdoc/parsers/parse_f95.rb, line 1673
      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

If attr is included, true is returned

[Source]

# File rdoc/parsers/parse_f95.rb, line 1698
      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

[Source]

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

[Validate]

ruby-doc.org is a service of James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.