Class: Rabbit::Task::Theme

Inherits:
Object
  • Object
show all
Includes:
GetText, Rake::DSL
Defined in:
lib/rabbit/task/theme.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| ... } ⇒ Theme

Returns a new instance of Theme.

Yields:

  • (_self)

Yield Parameters:



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

def initialize
  @logger = Logger.default
  @theme = load_theme_configuration
  @spec = nil
  @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.



32
33
34
# File 'lib/rabbit/task/theme.rb', line 32

def package_dir
  @package_dir
end

#pdf_dirObject

Returns the value of attribute pdf_dir.



32
33
34
# File 'lib/rabbit/task/theme.rb', line 32

def pdf_dir
  @pdf_dir
end

#required_rabbit_versionObject

Returns the value of attribute required_rabbit_version.



32
33
34
# File 'lib/rabbit/task/theme.rb', line 32

def required_rabbit_version
  @required_rabbit_version
end

Instance Method Details

#specObject



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

def spec
  @spec ||= create_spec
end