Sha256: c1069e6b3e001c2979aacdad881b07900504ddae1b710b14948c7d5db4664ca0

Contents?: true

Size: 768 Bytes

Versions: 42

Compression:

Stored size: 768 Bytes

Contents

require "guard/dsl"

module Guard
  # TODO: this should probably be a base class for Dsl instead (in Guard 3.x)
  class DslReader < Dsl
    attr_reader :plugin_names

    def initialize
      super
      @plugin_names = []
    end

    def guard(name, _options = {})
      @plugin_names << name.to_s
    end

    # Stub everything else
    def notification(_notifier, _opts = {})
    end

    def interactor(_options)
    end

    def group(*_args)
    end

    def watch(_pattern, &_action)
    end

    def callback(*_args, &_block)
    end

    def ignore(*_regexps)
    end

    def ignore!(*_regexps)
    end

    def logger(_options)
    end

    def scope(_scope = {})
    end

    def directories(_directories)
    end

    def clearing(_on)
    end
  end
end

Version data entries

42 entries across 42 versions & 10 rubygems

Version Path
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/guard-2.15.0/lib/guard/dsl_reader.rb
guard-2.16.1 lib/guard/dsl_reader.rb
guard-2.16.0 lib/guard/dsl_reader.rb
guard-2.15.1 lib/guard/dsl_reader.rb
alimentos-alu0100945645-0.1.0 vendor/bundle/ruby/2.3.0/gems/guard-2.15.0/lib/guard/dsl_reader.rb
alimentos-alu0100945645-1.0.0 vendor/bundle/ruby/2.3.0/gems/guard-2.15.0/lib/guard/dsl_reader.rb
guard-2.15.0 lib/guard/dsl_reader.rb
guard-2.14.2 lib/guard/dsl_reader.rb
comiditaULL-0.1.1 vendor/bundle/ruby/2.3.0/gems/guard-2.14.1/lib/guard/dsl_reader.rb
comidita_ull-0.1.1 vendor/bundle/ruby/2.3.0/gems/guard-2.14.1/lib/guard/dsl_reader.rb
comidita_ull-0.1.0 vendor/bundle/ruby/2.3.0/gems/guard-2.14.1/lib/guard/dsl_reader.rb
guard-2.14.1 lib/guard/dsl_reader.rb
gameboard-3.1.0 vendor/bundle/ruby/2.3.0/gems/guard-2.14.0/lib/guard/dsl_reader.rb
gameboard-3.0.0 vendor/bundle/ruby/2.3.0/gems/guard-2.14.0/lib/guard/dsl_reader.rb
guard-2.14.0 lib/guard/dsl_reader.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/guard-2.13.0/lib/guard/dsl_reader.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/guard-2.13.0/lib/guard/dsl_reader.rb
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/guard-2.13.0/lib/guard/dsl_reader.rb
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/guard-2.13.0/lib/guard/dsl_reader.rb
geminfo-0.1.0 path/gems/guard-2.13.0/lib/guard/dsl_reader.rb