Class: Tilt::WLangTemplate
- Inherits:
-
Template
- Object
- Template
- Tilt::WLangTemplate
- Defined in:
- lib/wlang/tilt/wlang_template.rb
Class Method Summary collapse
- .default_options ⇒ Object
- .default_options=(options) ⇒ Object
- .engine_initialized? ⇒ Boolean
- .with_options(options) ⇒ Object
Instance Method Summary collapse
Class Method Details
.default_options ⇒ Object
18 19 20 |
# File 'lib/wlang/tilt/wlang_template.rb', line 18 def (superclass. rescue {}).merge(@default_options || {}) end |
.default_options=(options) ⇒ Object
14 15 16 |
# File 'lib/wlang/tilt/wlang_template.rb', line 14 def () @default_options = end |
.engine_initialized? ⇒ Boolean
6 7 8 |
# File 'lib/wlang/tilt/wlang_template.rb', line 6 def engine_initialized? defined? ::WLang end |
.with_options(options) ⇒ Object
10 11 12 |
# File 'lib/wlang/tilt/wlang_template.rb', line 10 def () Class.new(WLangTemplate).tap{|c| c. = } end |
Instance Method Details
#initialize_engine ⇒ Object
24 25 26 |
# File 'lib/wlang/tilt/wlang_template.rb', line 24 def initialize_engine require_template_library('wlang') end |