Class: UniformNotifier::JavascriptAlert
- Inherits:
-
Base
- Object
- Base
- UniformNotifier::JavascriptAlert
show all
- Defined in:
- lib/uniform_notifier/javascript_alert.rb
Class Method Summary
collapse
Methods inherited from Base
out_of_channel_notify, wrap_js_association
Class Method Details
.active? ⇒ Boolean
3
4
5
|
# File 'lib/uniform_notifier/javascript_alert.rb', line 3
def self.active?
UniformNotifier.alert
end
|
.inline_notify(message) ⇒ Object
7
8
9
10
11
|
# File 'lib/uniform_notifier/javascript_alert.rb', line 7
def self.inline_notify( message )
return unless self.active?
wrap_js_association "alert( #{message.inspect} );"
end
|