Class: Slim::CodeEngine
- Inherits:
-
Embedded::TagEngine
- Object
- Embedded::TagEngine
- Slim::CodeEngine
- Defined in:
- lib/megatron/slim_code_filter.rb
Instance Method Summary collapse
Instance Method Details
#on_slim_embedded(engine, body) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/megatron/slim_code_filter.rb', line 9 def (engine, body) lang = body[1].last body.slice!(1,2) code = super(engine, body) code[3][2][3][1] = "lang-#{lang}" code end |