Sha256: cf3fc7c313352497f49240d531f61a33301c0a85ba67b416662669c565f21cae
Contents?: true
Size: 1.04 KB
Versions: 9
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true module Platform module Objects class BlameRange < Platform::Objects::Base description "Represents a range of information from a Git blame." scopeless_tokens_as_minimum implements Interfaces::A implements Interfaces::B field :starting_line, Integer, description: "The starting line for the range", null: false def starting_line @object.lines.first[:lineno] end field :ending_line, Integer, description: "The ending line for the range", null: false def ending_line @object.lines.first[:lineno] + (@object.lines.length - 1) end field :commit, Objects::Commit, description: "Identifies the line author", null: false field :age, Integer, method: :scale, description: "Identifies the recency of the change, from 1 (new) to 10 (old). This is calculated as a 2-quantile and determines the length of distance between the median age of all the changes in the file and the recency of the current range's change.", null: false end end end
Version data entries
9 entries across 9 versions & 1 rubygems