lib/peeky/renderer/class_interface_yard_render.rb
# Indentation prefix as a string, defaults to +''+
#
# If you were writing a class into a file with an existing
# module, you may set the indent to +'  '+ if you wanted this
# render to indent by two spaces
Indentation prefix as a string, defaults to +''+
If you were writing a class into a file with an existing
module, you may set the indent to +'  '+ if you wanted this
render to indent by two spaces
Indentation prefix as a string defaults to + ' ' + If you were writing a class into a file with an existing module you may set the indent to + ' ' + if you wanted this render to indent by two spaces
def render_accessors
        result = []
        @class_info.accessors.map.with_index do |attr, index|
          result.push '' if index.positive?
          result.push "#{@indent}# #{attr.name.to_s.humanize}"
          result.push "#{@indent}attr_accessor :#{attr.name}"
        end
        result.push '' unless result.length.zero?
        @output += result
      end
def render_accessors result = [ ] @class_info . accessors . map . with_index do | attr , index | result . push '' if index . positive? result . push "#{@indent}# #{attr.name.to_s.humanize}" result . push "#{@indent}attr_accessor :#{attr.name}" end result . push '' unless result . length . zero? @output += result end
Indentation prefix as a string, defaults to +''+
If you were writing a class into a file with an existing
module, you may set the indent to +'  '+ if you wanted this
render to indent by two spaces
Indentation prefix as a string defaults to + ' ' + If you were writing a class into a file with an existing module you may set the indent to + ' ' + if you wanted this render to indent by two spaces