Class: Monolens::Skip::Null

Inherits:
Object
  • Object
show all
Includes:
Lens
Defined in:
lib/monolens/skip/null.rb

Instance Attribute Summary

Attributes included from Lens

#options

Instance Method Summary collapse

Methods included from Lens

#initialize

Methods included from Lens::FetchSupport

#fetch_on

Instance Method Details

#call(arg, world = {}) ⇒ Object



6
7
8
9
10
# File 'lib/monolens/skip/null.rb', line 6

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

  arg
end