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
guard-2.19.1 lib/guard/dsl_reader.rb
guard-2.19.0 lib/guard/dsl_reader.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/guard-2.18.1/lib/guard/dsl_reader.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/guard-2.18.1/lib/guard/dsl_reader.rb
guard-2.18.1 lib/guard/dsl_reader.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/guard-2.18.0/lib/guard/dsl_reader.rb
guard-2.18.0 lib/guard/dsl_reader.rb
guard-2.17.0 lib/guard/dsl_reader.rb
qiita_org-0.1.35 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
qiita_org-0.1.34 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
qiita_org-0.1.33 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
qiita_org-0.1.32 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
qiita_org-0.1.31 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
qiita_org-0.1.30 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
qiita_org-0.1.29 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
qiita_org-0.1.28 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
qiita_org-0.1.27 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
qiita_org-0.1.26 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
qiita_org-0.1.25 gems/ruby/2.7.0/gems/guard-2.16.2/lib/guard/dsl_reader.rb
guard-2.16.2 lib/guard/dsl_reader.rb