Sha256: eb34e32ce80b0b6e1ada8b8da7049b38179c86ba3ab231fbb9c39b4ce8428a91

Contents?: true

Size: 173 Bytes

Versions: 18

Compression:

Stored size: 173 Bytes

Contents

module Kernel
  def yield_self
    return to_enum(__method__) { 1 } unless block_given?
    yield self
  end unless method_defined? :yield_self

  alias then yield_self
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
parlour-9.0.0 lib/parlour/kernel_hack.rb
parlour-8.1.0 lib/parlour/kernel_hack.rb
parlour-8.0.0 lib/parlour/kernel_hack.rb
parlour-7.0.0 lib/parlour/kernel_hack.rb
parlour-6.0.1 lib/parlour/kernel_hack.rb
parlour-6.0.0 lib/parlour/kernel_hack.rb
parlour-5.0.0 lib/parlour/kernel_hack.rb
parlour-5.0.0.beta.6 lib/parlour/kernel_hack.rb
parlour-5.0.0.beta.5 lib/parlour/kernel_hack.rb
parlour-5.0.0.beta.4 lib/parlour/kernel_hack.rb
parlour-5.0.0.beta.3 lib/parlour/kernel_hack.rb
parlour-5.0.0.beta.2 lib/parlour/kernel_hack.rb
parlour-5.0.0.beta.1 lib/parlour/kernel_hack.rb
parlour-4.0.1 lib/parlour/kernel_hack.rb
parlour-4.0.0 lib/parlour/kernel_hack.rb
parlour-3.0.0 lib/parlour/kernel_hack.rb
parlour-2.1.0 lib/parlour/kernel_hack.rb
parlour-2.0.0 lib/parlour/kernel_hack.rb