Add docstrings for sayballoon and thinkballoon
This commit is contained in:
parent
58b38d0fec
commit
493695ae4e
1 changed files with 14 additions and 0 deletions
|
@ -93,6 +93,13 @@ function cowthink(message::AbstractString; cow=default, eyes="oo", tongue=" ")
|
|||
println(string(balloon, cow(eyes=eyes, tongue=tongue, thoughts="o")))
|
||||
end
|
||||
|
||||
"""
|
||||
function sayballoon(message::AbstractString)
|
||||
|
||||
Creates the balloon portion of the art for [`cowsay`](@ref)
|
||||
|
||||
See also [`cowsay`](@ref), [`thinkballoon`](@ref)
|
||||
"""
|
||||
function sayballoon(message::AbstractString)
|
||||
messagelines = split(message, "\n")
|
||||
nlines = length(messagelines)
|
||||
|
@ -142,6 +149,13 @@ function sayballoon(message::AbstractString)
|
|||
|
||||
end #function
|
||||
|
||||
"""
|
||||
function thinkballoon(message::AbstractString)
|
||||
|
||||
Creates the balloon portion of the art for [`cowthink`](@ref)
|
||||
|
||||
See also [`cowthink`](@ref), [`sayballoon`](@ref)
|
||||
"""
|
||||
function thinkballoon(message::AbstractString)
|
||||
messagelines = split(message, "\n")
|
||||
nlines = length(messagelines)
|
||||
|
|
Loading…
Reference in a new issue