module Cuba::Tools::Widget
Attributes
config[RW]
load_all[RW]
reset_config[RW]
Public Instance Methods
reset_config!()
click to toggle source
Resets the configuration to the default (empty hash)
# File lib/cuba/tools/widget.rb, line 22 def reset_config! @config = OpenStruct.new({ url_path: '/widgets', widgets: {} }) end
setup() { |config| ... }
click to toggle source
# File lib/cuba/tools/widget.rb, line 13 def setup yield config end