lib/remi/transform.rb in remi-0.2.19 vs lib/remi/transform.rb in remi-0.2.20
- old
+ new
@@ -38,10 +38,10 @@
end
end
def truncate(len)
memoize_as_lambda(__method__, len) do |(mlen), larg|
- larg.slice(0,len)
+ larg.slice(0,mlen)
end
end
def concatenate(delimiter="")
memoize_as_lambda(__method__, delimiter) do |(mdelimiter), *largs|