lib/peeky/renderer/class_debug_render.rb
# Render the class interface
# rubocop:disable Metrics/AbcSize
Render the class interface
rubocop:disable Metrics/AbcSize
Render the class interface rubocop : disable Metrics / AbcSize
def render
        output = []
        output.push class_details
        attributes = render_accessors + render_readers + render_writers
        if attributes.length.positive?
          output.push("-- Attributes #{'-' * 86}")
          output.push(*attributes)
          output.push('')
        end
        render_methods_with_heading(output, @class_info.public_methods, 'Public Methods')
        render_methods_with_heading(output, @class_info.class_methods, 'Class Methods')
        render_methods_with_heading(output, @class_info.private_methods, 'Private Methods')
        output.pop if output.last == ''
        output.join("\n")
      end
def render output = [ ] output . push class_details attributes = render_accessors + render_readers + render_writers if attributes . length . positive? output . push ( "-- Attributes #{'-' * 86}" ) output . push ( * attributes ) output . push ( '' ) end render_methods_with_heading ( output , @class_info . public_methods , 'Public Methods' ) render_methods_with_heading ( output , @class_info . class_methods , 'Class Methods' ) render_methods_with_heading ( output , @class_info . private_methods , 'Private Methods' ) output . pop if output . last == '' output . join ( "\n" ) end
Render the class interface
rubocop:disable Metrics/AbcSize
Render the class interface rubocop : disable Metrics / AbcSize