Skip to content

Commit

Permalink
bugfix: removed dependency on instance variable
Browse files Browse the repository at this point in the history
  • Loading branch information
benilovj committed Oct 13, 2010
1 parent a60810f commit 14e1c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ascii-data-tools/record_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module FixedLengthType
include Normaliser::Normaliser

def total_length_of_fields
@total_length ||= @fields.inject(0) {|sum, field| sum + field.length}
@total_length ||= fields.inject(0) {|sum, field| sum + field.length}
end
end

Expand Down

0 comments on commit 14e1c0b

Please sign in to comment.