class Dry::Data::Safe

Public Instance Methods

[](input)
Alias for: call
call(input) click to toggle source
# File lib/dry/data/safe.rb, line 9
def call(input)
  if input.is_a?(primitive)
    type.call(input)
  else
    input
  end
end
Also aliased as: []