class InlineSvg::Configuration

def asset_file=(custom_asset_file)

def asset_file=(custom_asset_file)
  begin
    method = custom_asset_file.method(:named)
    if method.arity == 1
      @asset_file = custom_asset_file
    else
      raise InlineSvg::Configuration::Invalid.new("asset_file should implement the #named method with arity 1")
    end
  rescue NameError
    raise InlineSvg::Configuration::Invalid.new("asset_file should implement the #named method")
  end
end