Class: Rabbit::Task::Slide

Inherits:
Object
  • Object
show all
Includes:
GetText, Rake::DSL
Defined in:
lib/rabbit/task/slide.rb

Constant Summary

Constants included from GetText

GetText::DOMAIN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GetText

included

Constructor Details

#initialize {|_self| ... } ⇒ Slide

Returns a new instance of Slide.

Yields:

  • (_self)

Yield Parameters:


34
35
36
37
38
39
40
41
42
# File 'lib/rabbit/task/slide.rb', line 34

def initialize
  @logger = Logger.default
  @slide = load_slide_configuration
  @package_dir = "pkg"
  @pdf_dir = "pdf"
  @required_rabbit_version = ">= 2.0.2"
  yield(self) if block_given?
  define
end

Instance Attribute Details

#package_dirObject

Returns the value of attribute package_dir.


33
34
35
# File 'lib/rabbit/task/slide.rb', line 33

def package_dir
  @package_dir
end

#pdf_dirObject

Returns the value of attribute pdf_dir.


33
34
35
# File 'lib/rabbit/task/slide.rb', line 33

def pdf_dir
  @pdf_dir
end

#required_rabbit_versionObject

Returns the value of attribute required_rabbit_version.


33
34
35
# File 'lib/rabbit/task/slide.rb', line 33

def required_rabbit_version
  @required_rabbit_version
end

Instance Method Details

#specObject


44
45
46
# File 'lib/rabbit/task/slide.rb', line 44

def spec
  @spec ||= create_spec
end