Allow no args to plain_line

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2018-11-16 15:45:13 -05:00
parent a349f91e52
commit 1ef8cc9916

View file

@ -61,7 +61,7 @@ module Inspec
print_or_return(str.to_s, opts[:print])
end
def plain_line(str, opts = { print: true })
def plain_line(str = '', opts = { print: true })
print_or_return(str.to_s + "\n", opts[:print])
end