aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/rdoc-2.4.3/lib/rdoc/attr.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-03-12 13:05:19 +0000
committerSeb Bacon <seb.bacon@gmail.com>2012-03-12 13:05:19 +0000
commit37bff4c0154b57b35a3194a9b31a9422496b955b (patch)
tree61592a6bb9d1d9fea378a6e4efa8fdf7d5525b8a /vendor/gems/rdoc-2.4.3/lib/rdoc/attr.rb
parent8b49dc894066e452232cabd09333895487f86986 (diff)
parent8acea24f98268fbb9b73b66b9e98a1788a3b30ac (diff)
Merge branch 'merged-bundler' into develop
Diffstat (limited to 'vendor/gems/rdoc-2.4.3/lib/rdoc/attr.rb')
-rw-r--r--vendor/gems/rdoc-2.4.3/lib/rdoc/attr.rb79
1 files changed, 0 insertions, 79 deletions
diff --git a/vendor/gems/rdoc-2.4.3/lib/rdoc/attr.rb b/vendor/gems/rdoc-2.4.3/lib/rdoc/attr.rb
deleted file mode 100644
index 235a5ab23..000000000
--- a/vendor/gems/rdoc-2.4.3/lib/rdoc/attr.rb
+++ /dev/null
@@ -1,79 +0,0 @@
-require 'rdoc/code_object'
-
-##
-# An attribute created by \#attr, \#attr_reader, \#attr_writer or
-# \#attr_accessor
-
-class RDoc::Attr < RDoc::CodeObject
-
- ##
- # Name of the attribute
-
- attr_accessor :name
-
- ##
- # Is the attribute readable, writable or both?
-
- attr_accessor :rw
-
- ##
- # Source file token stream
-
- attr_accessor :text
-
- ##
- # public, protected, private
-
- attr_accessor :visibility
-
- def initialize(text, name, rw, comment)
- super()
- @text = text
- @name = name
- @rw = rw
- @visibility = :public
- self.comment = comment
- end
-
- ##
- # Attributes are ordered by name
-
- def <=>(other)
- self.name <=> other.name
- end
-
- ##
- # An HTML id-friendly representation of #name
-
- def html_name
- @name.gsub(/[^a-z]+/, '-')
- end
-
- def inspect # :nodoc:
- attr = case rw
- when 'RW' then :attr_accessor
- when 'R' then :attr_reader
- when 'W' then :attr_writer
- else
- " (#{rw})"
- end
-
- "#<%s:0x%x %s.%s :%s>" % [
- self.class, object_id,
- parent_name, attr, @name,
- ]
- end
-
- ##
- # URL path for this attribute
-
- def path
- "#{@parent.path}##{@name}"
- end
-
- def to_s # :nodoc:
- "attr: #{self.name} #{self.rw}\n#{self.comment}"
- end
-
-end
-