class Objc2swiftAssistant::ImplementationRegion
Public Class Methods
new(starting_line_number, is_root_entity )
click to toggle source
Calls superclass method
Objc2swiftAssistant::ClassRootRegion::new
# File lib/objc2swift_assistant/recognizers/implementation_recognizer.rb, line 16 def initialize(starting_line_number, is_root_entity ) super(starting_line_number, is_root_entity, CLASS_IMPLEMENTATION_KEY ) end
Public Instance Methods
extract_information( file_slice )
click to toggle source
# File lib/objc2swift_assistant/recognizers/implementation_recognizer.rb, line 20 def extract_information( file_slice ) class_name_match = /^\s*(@implementation)\s+(?<class_name>\w*)/.match(file_slice[0]) unless class_name_match.nil? @class_name = class_name_match["class_name"] else @configuation.log_warning( "Could not match class name in #{file_slice[0]}" ) end end