lib/phlex/helpers.rb in phlex-1.1.1 vs lib/phlex/helpers.rb in phlex-1.2.0
- old
+ new
@@ -13,23 +13,23 @@
else raise ArgumentError, "The class condition must be a Symbol or a Proc."
end
if truthy
case token
- when Hash then _append_token(tokens, token[:then])
- else _append_token(tokens, token)
+ when Hash then __append_token__(tokens, token[:then])
+ else __append_token__(tokens, token)
end
else
case token
- when Hash then _append_token(tokens, token[:else])
+ when Hash then __append_token__(tokens, token[:else])
end
end
end
tokens.join(" ")
end
- private def _append_token(tokens, token)
+ private def __append_token__(tokens, token)
case token
when nil then nil
when String then tokens << token
when Symbol then tokens << token.name
when Array then tokens.concat(token)