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
#initialize {|_self| ... } ⇒ Theme
Returns a new instance of Theme.
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_dir ⇒ Object
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_dir ⇒ Object
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_version ⇒ Object
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
#spec ⇒ Object
44 45 46 |
# File 'lib/rabbit/task/theme.rb', line 44 def spec @spec ||= create_spec end |