Improve YARD documentation
This commit is contained in:
parent
f1fe9561c5
commit
e9061dc23a
3 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
module Mutant
|
||||
# A simple delegator with opinions
|
||||
module Delegator
|
||||
# Class level mixins
|
||||
module ClassMethods
|
||||
|
||||
private
|
||||
|
|
|
@ -20,6 +20,9 @@ module Mutant
|
|||
# Initialize expression
|
||||
#
|
||||
# @param [MatchData] match
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def initialize(*)
|
||||
super
|
||||
@syntax = match.to_s
|
||||
|
@ -39,6 +42,8 @@ module Mutant
|
|||
#
|
||||
# @return [Fixnum]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def match_length(neddle)
|
||||
if eql?(neddle)
|
||||
syntax.length
|
||||
|
|
|
@ -5,7 +5,10 @@ module Mutant
|
|||
|
||||
# Run mutator on input
|
||||
#
|
||||
# @param [Parser::AST::Node] node
|
||||
# @param [Object] input
|
||||
# the input to mutate
|
||||
#
|
||||
# @param [Mutator] parent
|
||||
#
|
||||
# @return [self]
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue