lib/peeky/class_info.rb
# Holds an instance to the class you are gathering information from
Holds an instance to the class you are gathering information from
Holds an instance to the class you are gathering information from
def to_h
      {
        class_name: class_name,
        module_name: module_name,
        class_full_name: class_full_name,
        attr_accessor: accessors.map(&:name),
        attr_reader: readers.map(&:name),
        attr_writer: writers.map(&:name),
        klass: methods_to_h(class_methods),
        instance_public: methods_to_h(public_methods),
        instance_private: methods_to_h(private_methods)
      }
    end
def to_h { class_name : class_name , module_name : module_name , class_full_name : class_full_name , attr_accessor : accessors . map ( & :name ) , attr_reader : readers . map ( & :name ) , attr_writer : writers . map ( & :name ) , klass : methods_to_h ( class_methods ) , instance_public : methods_to_h ( public_methods ) , instance_private : methods_to_h ( private_methods ) } end
Holds an instance to the class you are gathering information from
Holds an instance to the class you are gathering information from