Sha256: f731132a088d5bfeeaea57b012b97c2633c1aaeb279d8f8760858f392730c702

Contents?: true

Size: 530 Bytes

Versions: 2

Compression:

Stored size: 530 Bytes

Contents

class Sinatra::ContentFor2::BaseHandler
  class << self
    def classes
      @classes ||= []
    end

    def register(handlerClass)
      classes << handlerClass
    end
  end

  attr_reader :template

  def initialize(template)
    @template = template
  end

  def engines
    raise NotImplementedError.new
  end

  def is_type?
    raise NotImplementedError.new
  end

  def block_is_type?(block)
    raise NotImplementedError.new
  end

  def capture_from_template(*args, &block)
    raise NotImplementedError.new
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sinatra-content-for2-0.3 lib/sinatra/content_for2/base_handler.rb
sinatra-content-for2-0.3.alpha1 lib/sinatra/content_for2/base_handler.rb