module Polyfill::V2_6::String

Public Instance Methods

split(*) click to toggle source
Calls superclass method
# File lib/polyfill/v2_6/string.rb, line 4
def split(*)
  result = super

  if block_given?
    result.each(&::Proc.new)
    self
  else
    result
  end
end