1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Improve method's affordance

This commit is contained in:
Waldyr de Souza 2016-05-20 20:59:21 -03:00
parent 06dc44fb5a
commit 0154ed53be

View file

@ -32,7 +32,12 @@ module AwesomePrint
end
def get_limit_size
options[:limit] ? DEFAULT_LIMIT_SIZE : options[:limit]
case options[:limit]
when true
DEFAULT_LIMIT_SIZE
else
options[:limit]
end
end
def limited(data, width, is_hash = false)