Class: SwiftGenerator::SwiftProtocol

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, inheritance_list, file_name: nil, characteristics: $default_swift_class_characteristics) ⇒ SwiftProtocol

Returns a new instance of SwiftProtocol.



761
762
763
764
765
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 761

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

Instance Attribute Details

#categorized_class_nameObject

Returns the value of attribute categorized_class_name.



759
760
761
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 759

def categorized_class_name
  @categorized_class_name
end