class Danger::PluginLinter::Rule
An internal class that is used to represent a rule for the linter.
Attributes
description[RW]
function[RW]
metadata[RW]
modifier[RW]
ref[RW]
title[RW]
type[RW]
Public Class Methods
new(modifier, ref, title, description, function)
click to toggle source
# File lib/danger/plugin_support/plugin_linter.rb, line 7 def initialize(modifier, ref, title, description, function) @modifier = modifier @title = title @description = description @function = function @ref = ref end
Public Instance Methods
object_applied_to()
click to toggle source
# File lib/danger/plugin_support/plugin_linter.rb, line 15 def object_applied_to metadata[:name].to_s.bold + " (" + type + ")" end