Class RDoc::Fortran95parser::Fortran95Definition
In: parsers/parse_f95.rb
Parent: Object

Information of arguments of subroutines and functions in Fortran95

Methods

include_attr?   new   to_s  

Public Class methods

[Source]

      # File parsers/parse_f95.rb, line 2635
2635:       def initialize(varname, types, inivalue, arraysuffix, comment,
2636:                      nodoc=false, doc_priority=50)
2637:         @varname = varname
2638:         @types = types
2639:         @inivalue = inivalue
2640:         @arraysuffix = arraysuffix
2641:         @comment = comment
2642:         @nodoc = nodoc
2643:         @doc_priority = doc_priority
2644:       end

Public Instance methods

If attr is included, true is returned

[Source]

      # File parsers/parse_f95.rb, line 2661
2661:       def include_attr?(attr)
2662:         return if !attr
2663:         @types.split(",").each{ |type|
2664:           return true if type.strip.chomp.upcase == attr.strip.chomp.upcase
2665:         }
2666:         return nil
2667:       end

[Source]

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

[Validate]