Sha256: 427ad02e65fd7a88d30f8dc09109ee03082dee3b7add27df4eb1a07bf583fed9
Contents?: true
Size: 629 Bytes
Versions: 75
Compression:
Stored size: 629 Bytes
Contents
module LintRoller class Plugin # `config' is a Hash of options passed to the plugin by the user def initialize(config = {}) @config = config end def about raise Error.new("Please implement `about` and return an instance of LintRoller::About") end # `context' is an instance of LintRoller::Context provided by the runner def supported?(context) true end # `context' is an instance of LintRoller::Context provided by the runner def rules(context) raise Error.new("Please implement `rules(context)` and return an instance of LintRoller::Rules") end end end
Version data entries
75 entries across 75 versions & 3 rubygems