Class: Rabbit::Theme::Manager
- Inherits:
-
Object
- Object
- Rabbit::Theme::Manager
- Extended by:
- Forwardable
- Defined in:
- lib/rabbit/theme/manager.rb
Instance Attribute Summary collapse
-
#canvas ⇒ Object
readonly
Returns the value of attribute canvas.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #apply(name) ⇒ Object
-
#initialize(canvas, &callback) ⇒ Manager
constructor
A new instance of Manager.
- #slides ⇒ Object
Constructor Details
Instance Attribute Details
#canvas ⇒ Object (readonly)
Returns the value of attribute canvas.
12 13 14 |
# File 'lib/rabbit/theme/manager.rb', line 12 def canvas @canvas end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
12 13 14 |
# File 'lib/rabbit/theme/manager.rb', line 12 def name @name end |
Instance Method Details
#apply(name) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rabbit/theme/manager.rb', line 19 def apply(name) @name = name begin @applier.apply_theme(name) rescue ThemeExit logger.info($!.) if $!. rescue StandardError, LoadError, SyntaxError logger.warn($!) end end |
#slides ⇒ Object
30 31 32 |
# File 'lib/rabbit/theme/manager.rb', line 30 def @canvas. end |