class Pandocomatic::Warning
A warning given during the conversion process.
Public Class Methods
new(message = :unknown, data = nil)
click to toggle source
Create a new Warning
with message and some extra data
@param message [Symbol = :unknown] the message translation key. @param data [Object = nil] optional data attached to the message.
# File lib/pandocomatic/warning.rb, line 30 def initialize(message = :unknown, data = nil) @message = message @data = data end
Public Instance Methods
data?()
click to toggle source
Does this Warning
have any data associated with it?
@return [Boolean] True if there is data attached, false otherwise.
# File lib/pandocomatic/warning.rb, line 38 def data? !@data.nil? end