Method: Weechat::Script::Config#init!
- Defined in:
- lib/weechat/script/config.rb
#init! ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/weechat/script/config.rb', line 9 def init! populate! hook!(false) {|config, value| config.gsub!(/^plugins\.var\.ruby\.#{@script}\./, '') spec = @specification[config] begin spec[0].from_weechat_config(value) rescue set!(config, spec[1]) end } end |