Skip to content

Commit

Permalink
Fixed typos in documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Nov 24, 2011
1 parent f8bef7c commit 4c47421
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lib/thor/base.rb
Expand Up @@ -247,7 +247,7 @@ def class_option(name, options={})
# Removes a previous defined argument. If :undefine is given, undefine
# accessors as well.
#
# ==== Paremeters
# ==== Parameters
# names<Array>:: Arguments to be removed
#
# ==== Examples
Expand All @@ -266,7 +266,7 @@ def remove_argument(*names)

# Removes a previous defined class option.
#
# ==== Paremeters
# ==== Parameters
# names<Array>:: Class options to be removed
#
# ==== Examples
Expand Down Expand Up @@ -413,7 +413,7 @@ def start(given_args=ARGV, config={})

# Allows to use private methods from parent in child classes as tasks.
#
# ==== Paremeters
# ==== Parameters
# names<Array>:: Method names to be used as tasks
#
# ==== Examples
Expand Down
2 changes: 1 addition & 1 deletion lib/thor/error.rb
@@ -1,6 +1,6 @@
class Thor
# Thor::Error is raised when it's caused by wrong usage of thor classes. Those
# errors have their backtrace supressed and are nicely shown to the user.
# errors have their backtrace suppressed and are nicely shown to the user.
#
# Errors that are caused by the developer, like declaring a method which
# overwrites a thor keyword, it SHOULD NOT raise a Thor::Error. This way, we
Expand Down
2 changes: 1 addition & 1 deletion lib/thor/group.rb
Expand Up @@ -104,7 +104,7 @@ def _invoke_#{name.to_s.gsub(/\W/, '_')}
#
# ==== Custom invocations
#
# You can also supply a block to customize how the option is giong to be
# You can also supply a block to customize how the option is going to be
# invoked. The block receives two parameters, an instance of the current
# class and the klass to be invoked.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/thor/invocation.rb
Expand Up @@ -85,7 +85,7 @@ def initialize(args=[], options={}, config={}, &block) #:nodoc:
# that it's going to use.
#
# If you want Rspec::RR to be initialized with its own set of options, you
# have to do that explicitely:
# have to do that explicitly:
#
# invoke "rspec:rr", [], :style => :foo
#
Expand Down
4 changes: 2 additions & 2 deletions lib/thor/runner.rb
Expand Up @@ -202,7 +202,7 @@ def self.exit_on_failure?
true
end

# Load the thorfiles. If relevant_to is supplied, looks for specific files
# Load the Thorfiles. If relevant_to is supplied, looks for specific files
# in the thor_root instead of loading them all.
#
# By default, it also traverses the current path until find Thor files, as
Expand Down Expand Up @@ -256,7 +256,7 @@ def thorfiles(relevant_to=nil, skip_lookup=false)
end
end

# Load thorfiles relevant to the given method. If you provide "foo:bar" it
# Load Thorfiles relevant to the given method. If you provide "foo:bar" it
# will load all thor files in the thor.yaml that has "foo" e "foo:bar"
# namespaces registered.
#
Expand Down
4 changes: 2 additions & 2 deletions lib/thor/shell/basic.rb
Expand Up @@ -37,7 +37,7 @@ def padding=(value)
# If asked to limit the correct responses, you can pass in an
# array of acceptable answers. If one of those is not supplied,
# they will be shown a message stating that one of those answers
# must be given and reasked the question.
# must be given and re-asked the question.
#
# ==== Example
# ask("What is your name?")
Expand Down Expand Up @@ -171,7 +171,7 @@ def print_wrapped(message, options={})
end

# Deals with file collision and returns true if the file should be
# overwriten and false otherwise. If a block is given, it uses the block
# overwritten and false otherwise. If a block is given, it uses the block
# response as the content for the diff.
#
# ==== Parameters
Expand Down
2 changes: 1 addition & 1 deletion lib/thor/util.rb
Expand Up @@ -184,7 +184,7 @@ def self.user_home
end
end

# Returns the root where thor files are located, dependending on the OS.
# Returns the root where thor files are located, depending on the OS.
#
def self.thor_root
File.join(user_home, ".thor").gsub(/\\/, '/')
Expand Down

0 comments on commit 4c47421

Please sign in to comment.