class Rabbit::Command::RabbitSlide::SlideMarkupLanguageMapper
Public Class Methods
new(data)
click to toggle source
# File lib/rabbit/command/rabbit-slide.rb, line 390 def initialize(data) @data = data end
Public Instance Methods
apply(combo_box)
click to toggle source
# File lib/rabbit/command/rabbit-slide.rb, line 402 def apply(combo_box) id = combo_box.active_id id = id.to_sym if id @data.author_conf.markup_language = id end
attach(combo_box)
click to toggle source
# File lib/rabbit/command/rabbit-slide.rb, line 394 def attach(combo_box) combo_box = combo_box @data.available_markup_languages.each do |key, value| combo_box.append(key.to_s, value) end combo_box.active_id = @data.author_conf.markup_language end