Sha256: 394a5d07165cece8fe88e64ba6c53cb686968bf02a8adb6ba39306655edea0a9

Contents?: true

Size: 209 Bytes

Versions: 5

Compression:

Stored size: 209 Bytes

Contents

module Monolens
  module Skip
    class Null
      include Lens

      signature(Type::Any, Type::Any)

      def call(arg, world = {})
        throw :skip if arg.nil?

        arg
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
monolens-0.6.4 lib/monolens/stdlib/skip/null.rb
monolens-0.6.3 lib/monolens/stdlib/skip/null.rb
monolens-0.6.2 lib/monolens/stdlib/skip/null.rb
monolens-0.6.1 lib/monolens/stdlib/skip/null.rb
monolens-0.6.0 lib/monolens/stdlib/skip/null.rb