class Opine::Application
Constants
- DEFAULTS
Attributes
application[RW]
Public Class Methods
theme()
click to toggle source
# File lib/opine/widgets/application.rb, line 12 def self.theme @@theme end
Public Instance Methods
alert(text, options={}, &block)
click to toggle source
# File lib/opine/widgets/alert.rb, line 6 def alert(text, options={}, &block) "Opine::#{theme.to_s.camelize}::Alert".constantize.new(options.merge(:application => application, :text => text),&block) end
theme()
click to toggle source
# File lib/opine/widgets/application.rb, line 6 def theme @@theme end
theme=(theme)
click to toggle source
# File lib/opine/widgets/application.rb, line 9 def theme= theme @@theme = theme end
window(options={},&block)
click to toggle source
# File lib/opine/widgets/window.rb, line 12 def window(options={},&block) "Opine::#{theme.to_s.camelize}::Window".constantize.new(Opine::Window::DEFAULTS.merge(options),&block) end