Sha256: 3c8674e4a1fdf932e701a3d2f46358553b66851c8cd4be1b531dfb84483d5c40

Contents?: true

Size: 299 Bytes

Versions: 36

Compression:

Stored size: 299 Bytes

Contents

require 'backports/tools'

class << Dir
  begin
    Backports.make_block_optional self, :foreach, :test_on => Dir, :arg => '.'
  rescue # We may not be able to read the current directory, issue #58
    Backports.make_block_optional self, :foreach, :force => true if RUBY_VERSION < '1.8.7'
  end
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
backports-3.7.0 lib/backports/1.8.7/dir/foreach.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/backports-3.6.8/lib/backports/1.8.7/dir/foreach.rb
backports-3.6.8 lib/backports/1.8.7/dir/foreach.rb
backports-3.6.7 lib/backports/1.8.7/dir/foreach.rb
backports-3.6.6 lib/backports/1.8.7/dir/foreach.rb
backports-3.6.5 lib/backports/1.8.7/dir/foreach.rb
backports-3.6.4 lib/backports/1.8.7/dir/foreach.rb
backports-3.6.3 lib/backports/1.8.7/dir/foreach.rb
backports-3.6.2 lib/backports/1.8.7/dir/foreach.rb
backports-3.6.1 lib/backports/1.8.7/dir/foreach.rb
scout_realtime-1.0.5 lib/vendor/backports-3.3.5/lib/backports/1.8.7/dir/foreach.rb
scout_realtime-1.0.4 lib/vendor/backports-3.3.5/lib/backports/1.8.7/dir/foreach.rb
scout_realtime-1.0.3 lib/vendor/backports-3.3.5/lib/backports/1.8.7/dir/foreach.rb
scout_realtime-1.0.3.pre lib/vendor/backports-3.3.5/lib/backports/1.8.7/dir/foreach.rb
scout_realtime-1.0.2 lib/vendor/backports-3.3.5/lib/backports/1.8.7/dir/foreach.rb
scout_realtime-1.0.1 lib/vendor/backports-3.3.5/lib/backports/1.8.7/dir/foreach.rb
scout_realtime-1.0.0 lib/vendor/backports-3.3.5/lib/backports/1.8.7/dir/foreach.rb
scout_realtime-0.5.5 lib/vendor/backports-3.3.5/lib/backports/1.8.7/dir/foreach.rb
scout_realtime-0.5.5.pre lib/vendor/backports-3.3.5/lib/backports/1.8.7/dir/foreach.rb
scout_realtime-0.5.4 lib/vendor/backports-3.3.5/lib/backports/1.8.7/dir/foreach.rb