Sha256: aa66a5ae6281f1c1fec98d9ef4c5949b4d78525fbfe9455633a490c76c1dc8ef

Contents?: true

Size: 291 Bytes

Versions: 23

Compression:

Stored size: 291 Bytes

Contents

module Kernel
  # call-seq:
  #   obj.yield_self {|_obj|...} -> an_object
  #
  # Yields <i>obj</i> and returns the result.
  #
  #   'my string'.yield_self {|s|s.upcase} #=> "MY STRING"
  #
  def yield_self(&block)
    return to_enum :yield_self unless block
    block.call(self)
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
script_core-0.0.6 ext/enterprise_script_service/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
script_core-0.0.5 ext/enterprise_script_service/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.2.0 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.1.5 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.1.4 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.1.3 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.1.2 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.1.1 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.1.0 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.0.11 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.0.10 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.0.9 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.0.8 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.0.7 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.0.6 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.0.5 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.0.3 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.0.2 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
esruby-0.0.0 resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb
script_core-0.0.4 ext/enterprise_script_service/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb