Merge pull request #242 from tjchambers/typos2

Fix documentation of parameters and correct method naming
This commit is contained in:
Markus Schirp 2014-08-13 16:00:15 +00:00
commit d060f462f4
11 changed files with 13 additions and 15 deletions

View file

@ -67,7 +67,7 @@ NestedIterators:
- Mutant::Mutator::Node::Resbody#mutate_captures
- Mutant::Mutator::Node::Arguments#emit_argument_mutations
- Mutant::RequireHighjack#infect
- Mutant::RequireHighjack#desinfect
- Mutant::RequireHighjack#disinfect
- Mutant::Subject#tests
- Parser::Lexer#self.new
max_allowed_nesting: 1

View file

@ -24,10 +24,10 @@ module Mutant
self
end
# Find last node satisfing predicate (as block)
# Find last node satisfying predicate (as block)
#
# @return [Parser::AST::Node]
# if satisfing node is found
# if satisfying node is found
#
# @yield [Parser::AST::Node]
#

View file

@ -100,7 +100,7 @@ module Mutant
end # Send
# Generic node metatada
# Generic node metadata
class Generic
include Adamantium, Concord.new(:node)

View file

@ -29,7 +29,7 @@ module Mutant
private
# Test scope if name matches expresion
# Test scope if name matches expression
#
# @param [Module, Class] scope
#

View file

@ -26,7 +26,7 @@ module Mutant
# Return generated mutations
#
# @return [Emumerable<Mutant::Mutation>]
# @return [Enumerable<Mutant::Mutation>]
#
# @api private
#

View file

@ -28,5 +28,5 @@ module Mutant
end # Boolean
end # Literal
end # Node
end # Mutatork
end # Mutator
end # Mutant

View file

@ -22,7 +22,7 @@ module Mutant
yield
self
ensure
desinfect
disinfect
end
# Infect kernel with highjack
@ -43,13 +43,13 @@ module Mutant
end
end
# Imperfectly desinfect kernel from highjack
# Imperfectly disinfect kernel from highjack
#
# @return [self]
#
# @api private
#
def desinfect
def disinfect
original = @original
target.module_eval do
undef :require

View file

@ -106,7 +106,7 @@ module Mutant
# Handle exit if needed
#
# @param [Result::Mutation] mutation
# @param [Result::Mutation] result
#
# @return [undefined]
#

View file

@ -32,8 +32,6 @@ module Mutant
#
# TODO: This logic is now centralized but still fucked.
#
# @param [Mutation] mutation
#
# @return [Array<Test>]
#
# @api private

View file

@ -14,7 +14,7 @@ Mutant::Meta::Example.add do
# Deleted else branch
mutation 'if condition; true end'
# Deleted if branch resuting in unless rendering
# Deleted if branch resulting in unless rendering
mutation 'unless condition; false; end'
# Deleted if branch with promoting else branch to if branch

View file

@ -10,7 +10,7 @@ Mutant::Meta::Example.add do
source 'super()'
singleton_mutations
# this is zsuper a totally differend node thant super()
# this is zsuper a totally different node than super()
mutation 'super'
end