class Plugin::Extract::OptionWidget

Public Class Methods

new(plugin, extract) click to toggle source
Calls superclass method
# File core/plugin/extract/option_widget.rb, line 10
def initialize(plugin, extract)
  super()
  @plugin = plugin
  @extract = extract
  if block_given?
    instance_eval(&Proc.new)
  end
end

Public Instance Methods

[](key) click to toggle source
# File core/plugin/extract/option_widget.rb, line 19
def [](key)
  case key
  when :icon, :sound
    @extract[key].to_s
  else
    @extract[key]
  end
end
[]=(key, value) click to toggle source
# File core/plugin/extract/option_widget.rb, line 28
def []=(key, value)
  case key
  when :icon, :sound
    @extract[key] = value.empty? ? nil : value
  else
    @extract[key] = value
  end
  @extract.notify_update
  value
end
create_inner_setting() click to toggle source
# File core/plugin/extract/option_widget.rb, line 6
def create_inner_setting
  self.class.new(@plugin, @extract)
end
method_missing(*args, &block) click to toggle source
# File core/plugin/extract/option_widget.rb, line 43
def method_missing(*args, &block)
  @plugin.__send__(*args, &block)
end
method_missing_at_select_dsl(*args, &block) click to toggle source
# File core/plugin/extract/option_widget.rb, line 39
def method_missing_at_select_dsl(*args, &block)
  @plugin.__send__(*args, &block)
end