aboutsummaryrefslogtreecommitdiffstats
path: root/lib/prettyprint.rb
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 03:10:21 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 03:10:21 +0000
commitedb98f8b910b00be16868b21116924cffad785b9 (patch)
treeeb98e40557395aa10c68c9bba496b62ff11a9369 /lib/prettyprint.rb
parent67964f299b671c9b29257c7a62000bfbadb4c556 (diff)
downloadruby-edb98f8b910b00be16868b21116924cffad785b9.tar.gz
fix typos. Patch by k_takata.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/prettyprint.rb')
-rw-r--r--lib/prettyprint.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/prettyprint.rb b/lib/prettyprint.rb
index eb498cc70a..5b1da330dd 100644
--- a/lib/prettyprint.rb
+++ b/lib/prettyprint.rb
@@ -320,7 +320,7 @@ class PrettyPrint
# Creates a new text object.
#
- # This contructor takes no arguments.
+ # This constructor takes no arguments.
#
# The workflow is to append a PrettyPrint::Text object to the buffer, and
# being able to call the buffer.last() to reference it.
@@ -359,7 +359,7 @@ class PrettyPrint
# Create a new Breakable object.
#
# Arguments:
- # * +sep+ String of the seperator
+ # * +sep+ String of the separator
# * +width+ Fixnum width of the +sep+
# * +q+ parent PrettyPrint object, to base from
def initialize(sep, width, q)
@@ -371,7 +371,7 @@ class PrettyPrint
@group.breakables.push self
end
- # Holds the seperator String
+ # Holds the separator String
#
# The +sep+ argument from ::new
attr_reader :obj
@@ -525,14 +525,14 @@ class PrettyPrint
@first = [true]
end
- # Add +obj+ to the text to be outputed.
+ # Add +obj+ to the text to be output.
#
# +width+ argument is here for compatibility. It is a noop argument.
def text(obj, width=nil)
@output << obj
end
- # Appends +sep+ to the text to be outputed. By default +sep+ is ' '
+ # Appends +sep+ to the text to be output. By default +sep+ is ' '
#
# +width+ argument is here for compatibility. It is a noop argument.
def breakable(sep=' ', width=nil)