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

Version Path
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.5 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.4 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.2.0 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.99 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.98 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.97 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.96 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.95 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.94 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.93 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.91 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb