Method: DefinedMethods::Singleton.protected_methods_defined_in

Defined in:
lib/defined_methods/singleton.rb

.protected_methods_defined_in(object) ⇒ Object



57
58
59
60
61
62
63
64
65
66
# File 'lib/defined_methods/singleton.rb', line 57

def protected_methods_defined_in(object)
  {
    object_name: object.to_s,
         object: object.singleton_class,
        methods: object.protected_methods(false) - methods_from_extended_modules(object) - methods_from_ancestors(object),
        private: false,
      protected: true,
      singleton: true
  }
end