Class: RDoc::Require

Inherits:
CodeObject show all
Defined in:
lib/rdoc/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.



745
746
747
748
749
# File 'lib/rdoc/code_objects.rb', line 745

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

Instance Attribute Details

#nameObject

Returns the value of attribute name



743
744
745
# File 'lib/rdoc/code_objects.rb', line 743

def name
  @name
end