From ef0c2c1af6ab8a99767a6d9930df6255faa71f41 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 13 Oct 2017 15:48:02 +0900 Subject: [PATCH] typo --- lib/haml/attribute_parser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/haml/attribute_parser.rb b/lib/haml/attribute_parser.rb index d0b50367..b57f7543 100644 --- a/lib/haml/attribute_parser.rb +++ b/lib/haml/attribute_parser.rb @@ -98,7 +98,7 @@ module Haml all_tokens = Ripper.lex(hash_literal.strip) all_tokens = all_tokens[1...-1] || [] # strip tokens for brackets - each_balaned_tokens(all_tokens) do |tokens| + each_balanced_tokens(all_tokens) do |tokens| key = shift_key!(tokens) value = tokens.map {|t| t[2] }.join.strip block.call(key, value) @@ -107,7 +107,7 @@ module Haml # @param [Array] tokens - Ripper tokens # @param [Proc] block - that takes balanced Ripper tokens as arguments - def each_balaned_tokens(tokens, &block) + def each_balanced_tokens(tokens, &block) attr_tokens = [] open_tokens = Hash.new { |h, k| h[k] = 0 }