lib/konstructor/main.rb in konstructor-0.4.5 vs lib/konstructor/main.rb in konstructor-0.4.6
- old
+ new
@@ -6,12 +6,10 @@
module Konstructor
module KonstructorMethod
private
- # @!visibility private
-
# konstructor -> nil
# konstructor(symbol, ...) -> nil
# konstructor(string, ...) -> nil
#
# If used without params, declares next method as constructor.
@@ -56,15 +54,15 @@
#
# Can raise several errors inheriting from <code>Konstructor::Error</code>
# ReservedNameError
# DeclaringInheritedError
# IncludingInModuleError
+ #
+ # @!visibility public
def konstructor(*several_variants) # :doc:
Konstructor.declare(self, several_variants)
nil
end
-
- # @!visibility protected
end
DEFAULT_NAMES = [:initialize]
RESERVED_NAMES = [:new, :initialize]
\ No newline at end of file