Sha256: e28318a978b3e48a3c577907b03631d0c5928e9d499c37c19efe54ecae7769ef

Contents?: true

Size: 225 Bytes

Versions: 5

Compression:

Stored size: 225 Bytes

Contents

module Monolens
  module Str
    class Strip
      include Lens

      signature(Type::String, Type::String)

      def call(arg, world = {})
        is_string!(arg, world)

        arg.to_s.strip
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
monolens-0.6.4 lib/monolens/stdlib/str/strip.rb
monolens-0.6.3 lib/monolens/stdlib/str/strip.rb
monolens-0.6.2 lib/monolens/stdlib/str/strip.rb
monolens-0.6.1 lib/monolens/stdlib/str/strip.rb
monolens-0.6.0 lib/monolens/stdlib/str/strip.rb