class Objc2swiftAssistant::CategoryImplementationRegion
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/category_recognizer.rb, line 56 def initialize(starting_line_number, is_root_entity ) super(starting_line_number, is_root_entity, CATEGORY_IMPLEMENTATION_KEY ) end
Public Instance Methods
extract_information( file_slice )
click to toggle source
# File lib/objc2swift_assistant/recognizers/category_recognizer.rb, line 60 def extract_information( file_slice ) m = CATEGORY_IMPLEMENTATION_REGEX.match(file_slice[0]) if m.nil? @configuration.log_warning( "Could not match category info in #{file_slice[0]}" ) else @class_name = m[ 'class_name' ] @category_name = m[ 'category_name' ] @configuration.log_verbose( "Matched category = #{@category_name} @class_name = #{@class_name}") end end