lib/peeky/renderer/class_interface_render.rb
# ClassInfo with information about the class instance to be rendered.
ClassInfo with information about the class instance to be rendered.
ClassInfo with information about the class instance to be rendered .
def render_readers
        result = @class_info.readers.map { |attr| "#{@indent}attr_reader :#{attr.name}" }
        result.push '' unless result.length.zero?
        @output += result
      end
def render_readers result = @class_info . readers . map { | attr | "#{@indent}attr_reader :#{attr.name}" } result . push '' unless result . length . zero? @output += result end
ClassInfo with information about the class instance to be rendered.
ClassInfo with information about the class instance to be rendered .