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.70 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.69 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.68 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.67 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.66 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.65 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.64 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.63 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.62 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.61 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.60 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.59 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.58 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.57 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.56 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.55 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.54 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.53 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.52 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb
harbr-0.1.50 vendor/bundle/ruby/3.2.0/gems/lint_roller-1.1.0/lib/lint_roller/plugin.rb