module Stefon::Config::Weights

This module is in charge of providing weights to rank certain kind of edits over others, Eg. Deleting Stephanie's line of code is more important than adding a line of code to Stephanie's file

Attributes

custom[RW]
default[R]

Public Class Methods

get(custom = nil) click to toggle source
# File lib/stefon/config.rb, line 23
def self.get(custom = nil)
  # in the future this will be provided arguments by the config loader
  # class after it loads them from yaml files
  @default = {
    deleted_line: 2,
    deleted_file: 4,
    added_line: 1,
    added_file: 1
  }
  @default unless custom
end