Class: PufferPages::Handlers::Base
- Inherits:
-
Object
- Object
- PufferPages::Handlers::Base
- Defined in:
- lib/puffer_pages/handlers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #codemirror_mode ⇒ Object
-
#initialize(type) ⇒ Base
constructor
A new instance of Base.
- #process(renderable, context = nil) ⇒ Object
Constructor Details
#initialize(type) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/puffer_pages/handlers/base.rb', line 6 def initialize type @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/puffer_pages/handlers/base.rb', line 4 def type @type end |
Instance Method Details
#codemirror_mode ⇒ Object
14 15 16 |
# File 'lib/puffer_pages/handlers/base.rb', line 14 def codemirror_mode 'text/x-liquid-html' end |
#process(renderable, context = nil) ⇒ Object
10 11 12 |
# File 'lib/puffer_pages/handlers/base.rb', line 10 def process renderable, context = nil renderable.render context end |