aboutsummaryrefslogtreecommitdiffstats
path: root/lib/prettyprint.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-22 02:38:59 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-22 02:38:59 +0000
commita84821f8dd60a4e7fb4716572aeb214b445dba8c (patch)
tree63c0fa21c4fa4f535df0daac4ae86beaaf7d8709 /lib/prettyprint.rb
parent34ec7c5b496fb4dad4536b6e71333484f1d99c4f (diff)
downloadruby-a84821f8dd60a4e7fb4716572aeb214b445dba8c.tar.gz
* lib/prettyprint.rb: removed PrettyPrint#first?
because it is obsoleted method since Ruby 1.8.2 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/prettyprint.rb')
-rw-r--r--lib/prettyprint.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/prettyprint.rb b/lib/prettyprint.rb
index 5b1da330dd..7e989374b7 100644
--- a/lib/prettyprint.rb
+++ b/lib/prettyprint.rb
@@ -154,28 +154,6 @@ class PrettyPrint
@group_stack.last
end
- # first? is a predicate to test the call is a first call to first? with
- # current group.
- #
- # It is useful to format comma separated values as:
- #
- # q.group(1, '[', ']') {
- # xxx.each {|yyy|
- # unless q.first?
- # q.text ','
- # q.breakable
- # end
- # ... pretty printing yyy ...
- # }
- # }
- #
- # first? is obsoleted in 1.8.2.
- #
- def first?
- warn "PrettyPrint#first? is obsoleted at 1.8.2."
- current_group.first?
- end
-
# Breaks the buffer into lines that are shorter than #maxwidth
def break_outmost_groups
while @maxwidth < @output_width + @buffer_width