Class: Objc2swiftAssistant::ClassRootRegion

Inherits:
MigrationRegion show all
Defined in:
lib/objc2swift_assistant/code_recognizer.rb

Instance Attribute Summary collapse

Attributes inherited from MigrationRegion

#allowed_parent_region_types, #can_occur_in_class_decl, #configuration, #detection_line, #ending_line_number, #ending_of_root_header, #is_root_entity, #is_single_line, #parent_region, #region_identifier, #region_type, #root_header, #starting_line_number, #sub_regions

Attributes inherited from FailableProcessingElement

#error_messages

Instance Method Summary collapse

Methods inherited from MigrationRegion

#add_sub_region, #brief_description, #complete, #contains_line, #dump, #dump_region_info, #extract_information, #generic_description, #has_failed, #resolve_ending_line_number

Methods inherited from FailableProcessingElement

#add_error, #add_warning, #has_errors, #initiailize

Constructor Details

#initialize(starting_line_number, is_root_entity, region_type_name) ⇒ ClassRootRegion

Returns a new instance of ClassRootRegion.



211
212
213
# File 'lib/objc2swift_assistant/code_recognizer.rb', line 211

def initialize( starting_line_number, is_root_entity, region_type_name )
  super( starting_line_number, is_root_entity, region_type_name )
end

Instance Attribute Details

#class_nameObject

Returns the value of attribute class_name.



209
210
211
# File 'lib/objc2swift_assistant/code_recognizer.rb', line 209

def class_name
  @class_name
end

Instance Method Details

#descriptionObject



215
216
217
# File 'lib/objc2swift_assistant/code_recognizer.rb', line 215

def description()
  generic_description( "Class: #{@class_name}" )
end