Class: RDocF95::Fortran95parser::Fortran95Definition
- Inherits:
-
Object
- Object
- RDocF95::Fortran95parser::Fortran95Definition
- Defined in:
- lib/rdoc-f95/parsers/parse_f95.rb
Overview
Information of arguments of subroutines and functions in Fortran95
Instance Attribute Summary collapse
-
#arraysuffix ⇒ Object
readonly
Suffix of array.
-
#comment ⇒ Object
Comments.
-
#doc_priority ⇒ Object
Priority of documentation.
-
#inivalue ⇒ Object
readonly
Initial Value.
-
#nodoc ⇒ Object
Flag of non documentation.
-
#types ⇒ Object
readonly
Types of variable.
-
#varname ⇒ Object
readonly
Name of variable.
Instance Method Summary collapse
-
#include_attr?(attr) ⇒ Boolean
If attr is included, true is returned.
-
#initialize(varname, types, inivalue, arraysuffix, comment, nodoc = false, doc_priority = 50) ⇒ Fortran95Definition
constructor
A new instance of Fortran95Definition.
- #to_s ⇒ Object
Constructor Details
#initialize(varname, types, inivalue, arraysuffix, comment, nodoc = false, doc_priority = 50) ⇒ Fortran95Definition
Returns a new instance of Fortran95Definition.
2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 |
# File 'lib/rdoc-f95/parsers/parse_f95.rb', line 2321 def initialize(varname, types, inivalue, arraysuffix, comment, nodoc=false, doc_priority=50) @varname = varname @types = types @inivalue = inivalue @arraysuffix = arraysuffix @comment = comment @nodoc = nodoc @doc_priority = doc_priority end |
Instance Attribute Details
#arraysuffix ⇒ Object (readonly)
Suffix of array
2310 2311 2312 |
# File 'lib/rdoc-f95/parsers/parse_f95.rb', line 2310 def arraysuffix @arraysuffix end |
#comment ⇒ Object
Comments
2313 2314 2315 |
# File 'lib/rdoc-f95/parsers/parse_f95.rb', line 2313 def comment @comment end |
#doc_priority ⇒ Object
Priority of documentation
2319 2320 2321 |
# File 'lib/rdoc-f95/parsers/parse_f95.rb', line 2319 def doc_priority @doc_priority end |
#inivalue ⇒ Object (readonly)
Initial Value
2307 2308 2309 |
# File 'lib/rdoc-f95/parsers/parse_f95.rb', line 2307 def inivalue @inivalue end |
#nodoc ⇒ Object
Flag of non documentation
2316 2317 2318 |
# File 'lib/rdoc-f95/parsers/parse_f95.rb', line 2316 def nodoc @nodoc end |
#types ⇒ Object (readonly)
Types of variable
2304 2305 2306 |
# File 'lib/rdoc-f95/parsers/parse_f95.rb', line 2304 def types @types end |
#varname ⇒ Object (readonly)
Name of variable
2301 2302 2303 |
# File 'lib/rdoc-f95/parsers/parse_f95.rb', line 2301 def varname @varname end |
Instance Method Details
#include_attr?(attr) ⇒ Boolean
If attr is included, true is returned
2346 2347 2348 2349 2350 2351 2352 |
# File 'lib/rdoc-f95/parsers/parse_f95.rb', line 2346 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 ⇒ Object
2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 |
# File 'lib/rdoc-f95/parsers/parse_f95.rb', line 2332 def to_s return <<-EOF <Fortran95Definition: varname=#{@varname}, types=#{types}, inivalue=#{@inivalue}, arraysuffix=#{@arraysuffix}, nodoc=#{@nodoc}, comment= #{@comment} > EOF end |