3 module Decorate::ProtectedMethod
4 # protected_method decorator - makes the next defined method
5 # protected. Otherwise works like
6 # Decorate::PrivateMethod#private_method.
7 def protected_method #:doc:
8 Decorate.decorate { |klass, method_name|
9 klass.send :protected, method_name
12 private :protected_method
16 include Decorate::ProtectedMethod
19 extend Decorate::ProtectedMethod