class Pronto::LabelmanRules::Rule
Public Class Methods
label(name)
click to toggle source
# File lib/pronto/labelman_rules/rule.rb, line 8 def self.label(name) define_method('label_name') { name } end
new(patches)
click to toggle source
# File lib/pronto/labelman_rules/rule.rb, line 4 def initialize(patches) @patches = patches end
Public Instance Methods
applicable?()
click to toggle source
# File lib/pronto/labelman_rules/rule.rb, line 16 def applicable? # implement me! false end
apply()
click to toggle source
# File lib/pronto/labelman_rules/rule.rb, line 12 def apply Pronto::Label.new(label_name) if applicable? end