Class: Rabbit::Command::RabbitSlide::Data

Inherits:
Struct
  • Object
show all
Defined in:
lib/rabbit/command/rabbit-slide.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#allotted_timeObject

Returns the value of attribute allotted_time

Returns:

  • (Object)

    the current value of allotted_time



37
38
39
# File 'lib/rabbit/command/rabbit-slide.rb', line 37

def allotted_time
  @allotted_time
end

#author_confObject

Returns the value of attribute author_conf

Returns:

  • (Object)

    the current value of author_conf



37
38
39
# File 'lib/rabbit/command/rabbit-slide.rb', line 37

def author_conf
  @author_conf
end

#slide_confObject

Returns the value of attribute slide_conf

Returns:

  • (Object)

    the current value of slide_conf



37
38
39
# File 'lib/rabbit/command/rabbit-slide.rb', line 37

def slide_conf
  @slide_conf
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



37
38
39
# File 'lib/rabbit/command/rabbit-slide.rb', line 37

def title
  @title
end

Instance Method Details

#available_markup_languagesObject



41
42
43
44
45
46
47
48
# File 'lib/rabbit/command/rabbit-slide.rb', line 41

def available_markup_languages
  {
    :markdown => "Markdown",
    :rd => "RD",
    :hiki => "Hiki",
    :pdf => "PDF",
  }
end

#default_markup_languageObject



50
51
52
# File 'lib/rabbit/command/rabbit-slide.rb', line 50

def default_markup_language
  :rd
end

#markup_languageObject



54
55
56
# File 'lib/rabbit/command/rabbit-slide.rb', line 54

def markup_language
  author_conf.markup_language || default_markup_language
end

#saveObject



58
59
60
# File 'lib/rabbit/command/rabbit-slide.rb', line 58

def save
  author_conf.save
end