Sha256: 94cf69eb6594fe11589fdbb1ea649edca4eda5aa418a968d2aec49b55e44f35e

Contents?: true

Size: 241 Bytes

Versions: 2

Compression:

Stored size: 241 Bytes

Contents

# backtick_javascript: true

module Kernel
  # Alert the given message using `window.alert()`. This is a blocking
  # method.
  #
  # @param msg [String] message to alert
  # @return [nil]
  def alert(msg)
    `alert(msg)`
    nil
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opal-jquery-0.5.2 lib/opal/jquery/kernel.rb
opal-jquery-0.5.1 lib/opal/jquery/kernel.rb