Class: RubySlides::Slide::Table

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/ruby_slides/slide/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

#copy_media, #merge_variables, #pixel_to_pt, #read_template, #render_view, #require_arguments

Constructor Details

#initialize(options = {}) ⇒ Table

Returns a new instance of Table.



11
12
13
14
# File 'lib/ruby_slides/slide/table.rb', line 11

def initialize(options={})
  require_arguments [:title, :content], options
  options.each {|k, v| instance_variable_set("@#{k}", v)}
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



9
10
11
# File 'lib/ruby_slides/slide/table.rb', line 9

def content
  @content
end

#titleObject (readonly)

Returns the value of attribute title.



9
10
11
# File 'lib/ruby_slides/slide/table.rb', line 9

def title
  @title
end

Instance Method Details

#save(extract_path, index) ⇒ Object



16
17
18
19
# File 'lib/ruby_slides/slide/table.rb', line 16

def save(extract_path, index)
  save_rel_xml(extract_path, index)
  save_slide_xml(extract_path, index)
end