diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-13 03:35:34 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-13 03:35:34 +0000 |
commit | f499936f2a47fabdc2c04d15f874cf5a5e447d5e (patch) | |
tree | 7f9edefac190ea0d035048d069e4a24df5f9187a /lib/rdoc/markup/simple_markup/lines.rb | |
parent | ec2378bfad45e04ccc7f166277051611f0621409 (diff) | |
download | ruby-f499936f2a47fabdc2c04d15f874cf5a5e447d5e.tar.gz ruby-f499936f2a47fabdc2c04d15f874cf5a5e447d5e.tar.xz ruby-f499936f2a47fabdc2c04d15f874cf5a5e447d5e.zip |
Cleanup RDoc
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/markup/simple_markup/lines.rb')
-rw-r--r-- | lib/rdoc/markup/simple_markup/lines.rb | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/rdoc/markup/simple_markup/lines.rb b/lib/rdoc/markup/simple_markup/lines.rb index 4e294f27d..8ef66079b 100644 --- a/lib/rdoc/markup/simple_markup/lines.rb +++ b/lib/rdoc/markup/simple_markup/lines.rb @@ -1,11 +1,10 @@ -########################################################################## -# -# We store the lines we're working on as objects of class Line. -# These contain the text of the line, along with a flag indicating the -# line type, and an indentation level - module SM + ## + # We store the lines we're working on as objects of class Line. These + # contain the text of the line, along with a flag indicating the line type, + # and an indentation level. + class Line INFINITY = 9999 @@ -85,15 +84,14 @@ module SM end end - ############################################################################### - # + ## # A container for all the lines - # class Lines + include Enumerable - attr_reader :lines # for debugging + attr_reader :lines # :nodoc: def initialize(lines) @lines = lines @@ -147,5 +145,8 @@ module SM def line_types @lines.map {|l| l.type } end + end + end + |