class Maglove::Widget::Base
Attributes
options[R]
scope[R]
Public Class Methods
new(scope, options = {})
click to toggle source
# File lib/maglove/widget.rb, line 16 def initialize(scope, options = {}) @options = defaults.merge(options) @scope = scope end
Public Instance Methods
defaults()
click to toggle source
# File lib/maglove/widget.rb, line 12 def defaults {} end
identifier()
click to toggle source
# File lib/maglove/widget.rb, line 8 def identifier "base" end
render() { |self| ... }
click to toggle source
# File lib/maglove/widget.rb, line 29 def render(&block) yield self if block_given? end
style_string(options, *args, &block)
click to toggle source
# File lib/maglove/widget.rb, line 25 def style_string(options, *args, &block) scope.style_string(options, *args, &block) end
widget_options()
click to toggle source
# File lib/maglove/widget.rb, line 21 def widget_options {} end