Class: Bundler::Overrule::Ban

Inherits:
Rule
  • Object
show all
Defined in:
lib/bundler/overrule/rule.rb

Overview

ban 'httpclient' — drop every edge pointing at this gem.

Instance Attribute Summary

Attributes inherited from Rule

#name, #reason

Instance Method Summary collapse

Methods inherited from Rule

#==, #applies_to?, #comparable_requirement, #hash, #initialize

Constructor Details

This class inherits a constructor from Bundler::Overrule::Rule

Instance Method Details

#to_sObject



106
107
108
# File 'lib/bundler/overrule/rule.rb', line 106

def to_s
  "ban #{name}"
end

#typeObject



102
103
104
# File 'lib/bundler/overrule/rule.rb', line 102

def type
  :ban
end