lib/yard/verifier.rb in yard-0.4.0 vs lib/yard/verifier.rb in yard-0.5.0
- old
+ new
@@ -71,23 +71,23 @@
# Modifies nil to not throw NoMethodErrors. This allows
# syntax like object.tag(:return).text to work if the #tag
# call returns nil, which means users don't need to perform
# stringent nil checking
#
- # @return [nil]
+ # @return [void]
def modify_nilclass
NilClass.send(:define_method, :method_missing) {|*args| }
end
# Returns the state of NilClass back to normal
- # @return [nil]
+ # @return [void]
def unmodify_nilclass
NilClass.send(:undef_method, :method_missing)
end
# Creates the +__execute+ method by evaluating the expressions
# as Ruby code
- # @return [nil]
+ # @return [void]
def create_method_from_expressions(exprs)
expr = exprs.flatten.map {|e| "(#{parse_expression(e)})" }.join(" && ")
instance_eval(<<-eof, __FILE__, __LINE__ + 1)
def __execute; #{expr}; end
\ No newline at end of file