Sha256: ac63538913fe7de3f03ee8b60a2d66ae713ced6c51732697e8fc5d9616e07faf
Contents?: true
Size: 380 Bytes
Versions: 21
Compression:
Stored size: 380 Bytes
Contents
module Hyperloop class ActingUser @default_options = { :nils => false # true allows an explicit nil to be valid. Overrides any other options } def filter(data) # Handle nil case if data.nil? return [nil, nil] if options[:nils] return [nil, :nils] end # otherwise, we win. return [data, nil] end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
hyper-operation-0.5.0 | lib/hyper-operation/filters/acting_user.rb |