Permalink
Browse files

Change self.included to be private

* The method is private within Module, and I like to respect the
  method visibility same-named methods in ancestors.
  • Loading branch information...
dkubb committed Jan 18, 2013
1 parent 18a2818 commit b9fdf820aaee6b59ca4066cb4c4059d0c306eff9
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/abstract_type.rb
View
@@ -8,15 +8,16 @@ module AbstractType
# @param [Module] descendant
# the module or class including AbstractType
#
# @return [self]
# @return [undefined]
#
# @api private
def self.included(descendant)
super
descendant.extend(ClassMethods)
self
end
private_class_method :included
module ClassMethods
# Instantiate a new object

0 comments on commit b9fdf82

Please sign in to comment.