Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Mar 4, 2019
1 parent 1929803 commit 8416cac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library/general/src/modules/Report.rb
Expand Up @@ -492,6 +492,8 @@ def Message(message_string)

# Store new message text, the text is displayed in a richtext widget - long lines are automatically wrapped
# @param [String] message_string message text (it can contain rich text tags)
# @param width [Integer] width of popup (@see Popup#LongMessageGeometry)
# @param height [Integer] height of popup (@see Popup#LongMessageGeometry)
# @return [void]
def LongMessage(message_string, width: 60, height: 10)
Builtins.y2milestone(1, "%1", message_string) if @log_messages
Expand Down Expand Up @@ -552,6 +554,8 @@ def Warning(warning_string)

# Store new warning text, the text is displayed in a richtext widget - long lines are automatically wrapped
# @param [String] warning_string warning text (it can contain rich text tags)
# @param width [Integer] width of popup (@see Popup#LongWarningGeometry)
# @param height [Integer] height of popup (@see Popup#LongWarningGeometry)
# @return [void]
def LongWarning(warning_string, width: 60, height: 10)
Builtins.y2warning(1, "%1", warning_string) if @log_warnings
Expand Down Expand Up @@ -594,6 +598,8 @@ def Error(error_string)

# Store new error text, the text is displayed in a richtext widget - long lines are automatically wrapped
# @param [String] error_string error text (it can contain rich text tags)
# @param width [Integer] width of popup (@see Popup#LongErrorGeometry)
# @param height [Integer] height of popup (@see Popup#LongErrorGeometry)
# @return [void]
def LongError(error_string, width: 60, height: 10)
Builtins.y2error(1, "%1", error_string) if @log_errors
Expand Down

0 comments on commit 8416cac

Please sign in to comment.