Class: Anchor::Config
- Inherits:
-
Object
- Object
- Anchor::Config
- Defined in:
- lib/anchor/config.rb
Instance Attribute Summary collapse
-
#ar_column_to_type ⇒ Object
Returns the value of attribute ar_column_to_type.
-
#ar_comment_to_string ⇒ Object
Returns the value of attribute ar_comment_to_string.
-
#array_bracket_notation ⇒ Object
Returns the value of attribute array_bracket_notation.
-
#empty_relationship_type ⇒ Object
Returns the value of attribute empty_relationship_type.
-
#field_case ⇒ Object
Returns the value of attribute field_case.
-
#infer_ar_enums ⇒ Object
Returns the value of attribute infer_ar_enums.
-
#infer_default_as_non_null ⇒ Object
Returns the value of attribute infer_default_as_non_null.
-
#infer_nullable_relationships_as_optional ⇒ Object
Returns the value of attribute infer_nullable_relationships_as_optional.
-
#maybe_as_union ⇒ Object
Returns the value of attribute maybe_as_union.
-
#rbs ⇒ Object
Returns the value of attribute rbs.
-
#rbs_sig_path ⇒ Object
Returns the value of attribute rbs_sig_path.
-
#use_active_record_comment ⇒ Object
Returns the value of attribute use_active_record_comment.
-
#use_active_record_validations ⇒ Object
Returns the value of attribute use_active_record_validations.
-
#use_type_as_schema_name ⇒ Object
Returns the value of attribute use_type_as_schema_name.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_type ⇒ Object
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_string ⇒ Object
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_notation ⇒ Object
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_type ⇒ Object
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_case ⇒ Object
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_enums ⇒ Object
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_null ⇒ Object
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_optional ⇒ Object
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_union ⇒ Object
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 |
#rbs ⇒ Object
Returns the value of attribute rbs.
3 4 5 |
# File 'lib/anchor/config.rb', line 3 def rbs @rbs end |
#rbs_sig_path ⇒ Object
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_comment ⇒ Object
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_validations ⇒ Object
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_name ⇒ Object
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 |