Method: Attributor::Type::ClassMethods#anonymous?

Defined in:
lib/attributor/type.rb

#anonymous?Boolean

Returns:



73
74
75
76
77
78
79
# File 'lib/attributor/type.rb', line 73

def anonymous?
  if @_anonymous.nil?
    name.nil? # if nothing is set, consider it anonymous if the class does not have a name
  else
    @_anonymous
  end
end