lib/genderize/io/parser/header.rb in genderize-io-1.3.0 vs lib/genderize/io/parser/header.rb in genderize-io-1.4.0
- old
+ new
@@ -12,12 +12,12 @@
@strict = strict
@headers = []
end
def self.parse(response, strict: true)
- klass = new(response, strict: strict)
- klass.parse
- klass
+ instance = new(response, strict: strict)
+ instance.parse
+ instance
end
def parse
@headers = @response.split(/\\r\\n|\n|\r/)
end