test/fixtures/simple/lib/foo.rb in inch-0.4.10 vs test/fixtures/simple/lib/foo.rb in inch-0.5.0.rc1
- old
+ new
@@ -39,18 +39,14 @@
# @param p2 [String, nil] optionally param
# @return [void]
def method_without_docstring(p1, p2 = nil)
end
- # @return [String]
+ # @return [void]
def method_without_params_or_docstring
end
- # @return [void]
- def method_without_usable_return_value
- end
-
# Provides an example of a method without parameters
# missing the return type.
#
def method_without_params_or_return_type
end
@@ -72,26 +68,9 @@
# Params:
# +param1+:: param1 line string to be executed by the system
# +param2+:: +Proc+ object that takes a pipe object as first and only param (may be nil)
# +param3+:: +Proc+ object that takes a pipe object as first and only param (may be nil)
def method_with_other_rdoc_doc(param1, param2, param3)
- end
-
- # Injects text right after the class definition. Since it depends on
- # insert_into_file, it's reversible.
- #
- # ==== Parameters
- # param1<String>:: path of the file to be changed
- # param2<String|Class>:: the class to be manipulated
- #
- # ==== Examples
- #
- # inject_into_class "app/controllers/application_controller.rb", ApplicationController, " filter_parameter :password\n"
- #
- # inject_into_class "app/controllers/application_controller.rb", ApplicationController do
- # " filter_parameter :password\n"
- # end
- def method_with_yet_another_rdoc_doc(param1, param2)
end
# An example of a method that takes a parameter (+param1+)
# and does nothing. But the previous sentence mentions said
# parameter.