Class: Rabbit::Task::Theme
- Inherits:
-
Object
- Object
- Rabbit::Task::Theme
- Includes:
- GetText, Rake::DSL
- Defined in:
- lib/rabbit/task/theme.rb
Constant Summary
Constants included from GetText
Instance Attribute Summary collapse
-
#package_dir ⇒ Object
Returns the value of attribute package_dir.
-
#pdf_dir ⇒ Object
Returns the value of attribute pdf_dir.
-
#required_rabbit_version ⇒ Object
Returns the value of attribute required_rabbit_version.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Theme
constructor
A new instance of Theme.
- #spec ⇒ Object
Methods included from GetText
Constructor Details
permalink #initialize {|_self| ... } ⇒ Theme
Returns a new instance of Theme.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rabbit/task/theme.rb', line 34 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
permalink #package_dir ⇒ Object
Returns the value of attribute package_dir.
33 34 35 |
# File 'lib/rabbit/task/theme.rb', line 33 def package_dir @package_dir end |
permalink #pdf_dir ⇒ Object
Returns the value of attribute pdf_dir.
33 34 35 |
# File 'lib/rabbit/task/theme.rb', line 33 def pdf_dir @pdf_dir end |
permalink #required_rabbit_version ⇒ Object
Returns the value of attribute required_rabbit_version.
33 34 35 |
# File 'lib/rabbit/task/theme.rb', line 33 def required_rabbit_version @required_rabbit_version end |
Instance Method Details
permalink #spec ⇒ Object
[View source]
45 46 47 |
# File 'lib/rabbit/task/theme.rb', line 45 def spec @spec ||= create_spec end |