aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/rdoc-2.4.3/lib/rdoc/require.rb
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-08-24 18:09:33 +0100
committerRobin Houston <robin@lenny.robin>2011-08-24 18:09:33 +0100
commit95ed2bc24312699cfce9bb6f9bc1418b15718bb1 (patch)
tree6639e8b140b0d74a8f93c2ab00d7a7faba41d6d7 /vendor/gems/rdoc-2.4.3/lib/rdoc/require.rb
parent68a5989094f63a7e32fd6745b1c5739e038339f3 (diff)
Add rdoc 2.4.3 to vendor/gems
Diffstat (limited to 'vendor/gems/rdoc-2.4.3/lib/rdoc/require.rb')
-rw-r--r--vendor/gems/rdoc-2.4.3/lib/rdoc/require.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/gems/rdoc-2.4.3/lib/rdoc/require.rb b/vendor/gems/rdoc-2.4.3/lib/rdoc/require.rb
new file mode 100644
index 000000000..407b55af3
--- /dev/null
+++ b/vendor/gems/rdoc-2.4.3/lib/rdoc/require.rb
@@ -0,0 +1,32 @@
+require 'rdoc/code_object'
+
+##
+# A file loaded by \#require
+
+class RDoc::Require < RDoc::CodeObject
+
+ ##
+ # Name of the required file
+
+ attr_accessor :name
+
+ ##
+ # Creates a new Require that loads +name+ with +comment+
+
+ def initialize(name, comment)
+ super()
+ @name = name.gsub(/'|"/, "") #'
+ self.comment = comment
+ end
+
+ def inspect # :nodoc:
+ "#<%s:0x%x require '%s' in %s>" % [
+ self.class,
+ object_id,
+ @name,
+ parent_file_name,
+ ]
+ end
+
+end
+