Sha256: 934dc5aee58a14b8efd6f98163cc474230df730113ff3bdd47644045e6491588

Contents?: true

Size: 175 Bytes

Versions: 17

Compression:

Stored size: 175 Bytes

Contents

class Proc
  # Standard in ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/Proc.html]
  alias_method :yield, :call unless method_defined? :yield
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
marcandre-backports-1.4.0 lib/backports/proc.rb
marcandre-backports-1.5.0 lib/backports/proc.rb
marcandre-backports-1.6.0 lib/backports/proc.rb
marcandre-backports-1.6.1 lib/backports/proc.rb
marcandre-backports-1.6.3 lib/backports/proc.rb
marcandre-backports-1.6.4 lib/backports/proc.rb
marcandre-backports-1.6.6 lib/backports/proc.rb
marcandre-backports-1.6.7 lib/backports/proc.rb
marcandre-backports-1.6.8 lib/backports/proc.rb
backports-1.6.6 lib/backports/proc.rb
backports-1.6.0 lib/backports/proc.rb
backports-1.6.3 lib/backports/proc.rb
backports-1.6.4 lib/backports/proc.rb
backports-1.6.7 lib/backports/proc.rb
backports-1.6.8 lib/backports/proc.rb
backports-1.6.1 lib/backports/proc.rb
backports-1.5.0 lib/backports/proc.rb