Sha256: cc3bac47f28027358a6b07a65865d6efbdb0b17fec70b0d149638139bf11ccc4
Contents?: true
Size: 349 Bytes
Versions: 5
Compression:
Stored size: 349 Bytes
Contents
module Monolens module Str class Split include Lens signature(Type::String, Type::Array.of(Type::String), { separator: [Type::String, false] }) def call(arg, world = {}) is_string!(arg, world) sep = option(:separator, ' ') sep ? arg.split(sep) : arg.split end end end end
Version data entries
5 entries across 5 versions & 1 rubygems