summaryrefslogtreecommitdiff
path: root/ruby_2_2/lib/rdoc/markup/attr_span.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_2_2/lib/rdoc/markup/attr_span.rb')
-rw-r--r--ruby_2_2/lib/rdoc/markup/attr_span.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/ruby_2_2/lib/rdoc/markup/attr_span.rb b/ruby_2_2/lib/rdoc/markup/attr_span.rb
deleted file mode 100644
index b5c1b3b7b7..0000000000
--- a/ruby_2_2/lib/rdoc/markup/attr_span.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-##
-# An array of attributes which parallels the characters in a string.
-
-class RDoc::Markup::AttrSpan
-
- ##
- # Creates a new AttrSpan for +length+ characters
-
- def initialize(length)
- @attrs = Array.new(length, 0)
- end
-
- ##
- # Toggles +bits+ from +start+ to +length+
- def set_attrs(start, length, bits)
- for i in start ... (start+length)
- @attrs[i] |= bits
- end
- end
-
- ##
- # Accesses flags for character +n+
-
- def [](n)
- @attrs[n]
- end
-
-end
-