Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #766 from kachick/module-visibility_setters_returned
Module#{public,protected,private} should return self
- Loading branch information
Showing
with
3 additions
and 9 deletions.
@@ -1,7 +1,4 @@ | ||
fails:Module#private_class_method makes an existing class method private | ||
fails:Module#private_class_method makes an existing class method private up the inheritance tree | ||
fails:Module#private_class_method accepts more than one method at a time | ||
fails:Module#private_class_method raises a NameError if class method doesn't exist | ||
fails:Module#private_class_method raises a NameError when the given name is not a method | ||
fails:Module#private_class_method raises a NameError when the given name is an instance method | ||
fails:Module#private_class_method makes a class method private |
@@ -1,4 +1,3 @@ | ||
fails:Module#private makes the target method uncallable from other types | ||
fails:Module#private makes a public Object instance method private in a new module | ||
fails:Module#private makes a public Object instance method private in Kernel | ||
fails:Module#private returns self |
@@ -1,4 +1,3 @@ | ||
fails:Module#protected makes an existing class method protected | ||
fails:Module#protected makes a public Object instance method protected in a new module | ||
fails:Module#protected makes a public Object instance method protected in Kernel | ||
fails:Module#protected returns self |
@@ -1,6 +1,3 @@ | ||
fails:Module#public_class_method makes an existing class method public | ||
fails:Module#public_class_method makes an existing class method public up the inheritance tree | ||
fails:Module#public_class_method accepts more than one method at a time | ||
fails:Module#public_class_method raises a NameError if class method doesn't exist | ||
fails:Module#public_class_method raises a NameError when the given name is not a method | ||
fails:Module#public_class_method raises a NameError when the given name is an instance method |
@@ -1,3 +1,2 @@ | ||
fails:Module#public makes a private Object instance method public in a new module | ||
fails:Module#public makes a private Object instance method public in Kernel | ||
fails:Module#public returns self |