Sha256: 8c345bc2439084d7e4a785c9388552e9b9307819d842f14a10edb706f8b3f0db

Contents?: true

Size: 431 Bytes

Versions: 36

Compression:

Stored size: 431 Bytes

Contents

module Spec
  module Runner
    module Formatter
      module NOOPMethodMissing
        def respond_to?(message, include_private = false)
          if include_private
            true
          else
            !private_methods.any? {|m| [message.to_s, message.to_sym].include?(m)}
          end
        end

      private
        
        def method_missing(sym, *args)
          # a no-op
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 11 rubygems

Version Path
rspec-instructure-1.3.3 lib/spec/runner/formatter/no_op_method_missing.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/lib/spec/runner/formatter/no_op_method_missing.rb
rspec-1.3.2 lib/spec/runner/formatter/no_op_method_missing.rb
rspec-1.3.1 lib/spec/runner/formatter/no_op_method_missing.rb
rspec-1.3.1.rc lib/spec/runner/formatter/no_op_method_missing.rb
rspec-1.3.0 lib/spec/runner/formatter/no_op_method_missing.rb
hubbub-0.0.11 lib/vendor/plugins/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
hubbub-0.0.8 lib/vendor/plugins/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/lib/spec/runner/formatter/no_op_method_missing.rb
media-path-0.1.2 vendor/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
simple-templater-0.0.1.3 vendor/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
pupu-0.0.2.pre vendor/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
media-path-0.1.1.pre vendor/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
simple-templater-0.0.1.2 vendor/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
media-path-0.1.1 vendor/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
simple-templater-0.0.1.1 vendor/rspec/lib/spec/runner/formatter/no_op_method_missing.rb
pupu-0.0.2 vendor/rspec/lib/spec/runner/formatter/no_op_method_missing.rb