Class: Anchor::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/anchor/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/anchor/config.rb', line 18

def initialize
  @ar_column_to_type = nil
  @field_case = nil
  @use_active_record_validations = true
  @use_active_record_comment = nil
  @infer_nullable_relationships_as_optional = nil
  @empty_relationship_type = nil
  @use_type_as_schema_name = nil
  @maybe_as_union = nil
  @array_bracket_notation = nil
  @infer_default_as_non_null = nil
  @ar_comment_to_string = nil
  @infer_ar_enums = nil
  @rbs = "off"
  @rbs_sig_path = Rails.root.join("sig")
end

Instance Attribute Details

#ar_column_to_typeObject

Returns the value of attribute ar_column_to_type.



3
4
5
# File 'lib/anchor/config.rb', line 3

def ar_column_to_type
  @ar_column_to_type
end

#ar_comment_to_stringObject

Returns the value of attribute ar_comment_to_string.



3
4
5
# File 'lib/anchor/config.rb', line 3

def ar_comment_to_string
  @ar_comment_to_string
end

#array_bracket_notationObject

Returns the value of attribute array_bracket_notation.



3
4
5
# File 'lib/anchor/config.rb', line 3

def array_bracket_notation
  @array_bracket_notation
end

#empty_relationship_typeObject

Returns the value of attribute empty_relationship_type.



3
4
5
# File 'lib/anchor/config.rb', line 3

def empty_relationship_type
  @empty_relationship_type
end

#field_caseObject

Returns the value of attribute field_case.



3
4
5
# File 'lib/anchor/config.rb', line 3

def field_case
  @field_case
end

#infer_ar_enumsObject

Returns the value of attribute infer_ar_enums.



3
4
5
# File 'lib/anchor/config.rb', line 3

def infer_ar_enums
  @infer_ar_enums
end

#infer_default_as_non_nullObject

Returns the value of attribute infer_default_as_non_null.



3
4
5
# File 'lib/anchor/config.rb', line 3

def infer_default_as_non_null
  @infer_default_as_non_null
end

#infer_nullable_relationships_as_optionalObject

Returns the value of attribute infer_nullable_relationships_as_optional.



3
4
5
# File 'lib/anchor/config.rb', line 3

def infer_nullable_relationships_as_optional
  @infer_nullable_relationships_as_optional
end

#maybe_as_unionObject

Returns the value of attribute maybe_as_union.



3
4
5
# File 'lib/anchor/config.rb', line 3

def maybe_as_union
  @maybe_as_union
end

#rbsObject

Returns the value of attribute rbs.



3
4
5
# File 'lib/anchor/config.rb', line 3

def rbs
  @rbs
end

#rbs_sig_pathObject

Returns the value of attribute rbs_sig_path.



3
4
5
# File 'lib/anchor/config.rb', line 3

def rbs_sig_path
  @rbs_sig_path
end

#use_active_record_commentObject

Returns the value of attribute use_active_record_comment.



3
4
5
# File 'lib/anchor/config.rb', line 3

def use_active_record_comment
  @use_active_record_comment
end

#use_active_record_validationsObject

Returns the value of attribute use_active_record_validations.



3
4
5
# File 'lib/anchor/config.rb', line 3

def use_active_record_validations
  @use_active_record_validations
end

#use_type_as_schema_nameObject

Returns the value of attribute use_type_as_schema_name.



3
4
5
# File 'lib/anchor/config.rb', line 3

def use_type_as_schema_name
  @use_type_as_schema_name
end