Class: RDoc::Require
- Inherits:
-
CodeObject
- Object
- CodeObject
- RDoc::Require
- Defined in:
- lib/rdoc/code_objects.rb
Overview
a required file
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from CodeObject
#comment, #document_children, #document_self, #done_documenting, #force_documentation, #parent, #section, #viewer
Instance Method Summary collapse
-
#initialize(name, comment) ⇒ Require
constructor
A new instance of Require.
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
#name ⇒ Object
Returns the value of attribute name
743 744 745 |
# File 'lib/rdoc/code_objects.rb', line 743 def name @name end |