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:
parent
06dc44fb5a
commit
0154ed53be
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue