Class: SwiftGenerator::SwiftCategory

Inherits:
SwiftClass show all
Defined in:
lib/swift_generator/code_generation/swift_class_generation.rb

Instance Attribute Summary collapse

Attributes inherited from SwiftClass

#access_control_modifier, #auto_test_class, #do_generate, #parent_class, #post_super_initializations, #supporting_elements_created, #test_object_method

Attributes inherited from SwiftNonPrimitive

#access_control_modifiers, #class_characteristics, #definition_set, #file_name, #inheritance_list, #initializers, #is_test_element, #is_user_editable, #methods, #properties, #source_file, #specified_type_name, #top_inner_comment_block, #type_name

Instance Method Summary collapse

Methods inherited from SwiftClass

#add_simple_class_property, #create_copy_methods, #create_description_methods, #create_equality_methods, #create_init_methods, #create_test_classes, #create_user_classes, #ensure_test_object_method, #insert_marshal_expression, #insert_unmarshal_expression, #make_property_type, #post_super_init, #prepare_for_generation, #prepare_marshaling_code, #prepare_supporting_elements, #resolve_inheritance, #set_test_values, #super_has_characteristics, #test_object_method_call

Methods inherited from SwiftNonPrimitive

#comparable_properties, #make_property_type, #persistent_properties, #prepare_for_generation, #prepare_supporting_elements, #resolve_property_types, #swift_type_symbol, #transient_properties

Constructor Details

#initialize(definition_set, specified_type_name, categorized_class_name, file_name: nil, characteristics: $default_swift_class_characteristics, is_test_element: false, is_user_editable: false) ⇒ SwiftCategory

Returns a new instance of SwiftCategory.



749
750
751
752
753
754
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 749

def initialize( definition_set, specified_type_name, categorized_class_name, file_name: nil, characteristics:$default_swift_class_characteristics,
                 is_test_element: false, is_user_editable: false )
   super( definition_set, specified_type_name, inheritance_list=[], file_name:file_name,
                   characteristics:characteristics, is_test_element:is_test_element, is_user_editable:is_user_editable )
   @categorized_class_name = categorized_class_name || nil
end

Instance Attribute Details

#categorized_class_nameObject

Returns the value of attribute categorized_class_name.



747
748
749
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 747

def categorized_class_name
  @categorized_class_name
end