Class: RDocF95::Require

Inherits:
CodeObject show all
Defined in:
lib/rdoc-f95/code_objects.rb

Overview

a required file

Instance Attribute Summary collapse

Attributes inherited from CodeObject

#comment, #document_children, #document_self, #done_documenting, #force_documentation, #parent, #section, #viewer

Instance Method Summary collapse

Methods inherited from CodeObject

attr_overridable, #remove_classes_and_modules, #remove_methods_etc, #start_doc, #stop_doc

Constructor Details

#initialize(name, comment) ⇒ Require

Returns a new instance of Require.



756
757
758
759
760
# File 'lib/rdoc-f95/code_objects.rb', line 756

def initialize(name, comment)
  super()
  @name = name.gsub(/'|"/, "") #'
  self.comment = comment
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



754
755
756
# File 'lib/rdoc-f95/code_objects.rb', line 754

def name
  @name
end