Class: PufferPages::Handlers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/puffer_pages/handlers/base.rb

Direct Known Subclasses

Yaml

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject (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_modeObject



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