Sha256: c6795c0c8edebdd21e3375b50891e5e78830aa69e9667df877a6e3ce7abf166b

Contents?: true

Size: 209 Bytes

Versions: 1

Compression:

Stored size: 209 Bytes

Contents

class Nydp::Builtin::StringSplit
  include Nydp::Builtin::Base, Singleton

  def builtin_call str, sep=nil
    sep = sep.to_s unless sep.is_a? Regexp
    Nydp::Pair.from_list str.to_s.split(sep, -1)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nydp-0.6.0 lib/nydp/builtin/string_split.rb