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-0.1.90 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.89 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.88 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.87 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.86 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.85 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.84 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.83 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.82 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.81 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.80 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.79 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.78 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.77 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.76 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.75 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.74 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.73 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.72 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.71 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb