Class: Skyline::Renderer Deprecated

Inherits:
Skyline::Rendering::Renderer show all
Defined in:
lib/skyline/deprecated/version3_0_8.rb

Overview

Deprecated.

Don’t use Skyline::Renderer anymore, use Skyline::Rendering::Renderer (will be removed in 3.1.0)

Instance Attribute Summary

Attributes inherited from Skyline::Rendering::Renderer

#_config, #assigns, #template_paths

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Skyline::Rendering::Renderer

#config, #file_path, helper, #object, #object_template_paths, #peek, #peek_until, register_renderables, #render, #render_collection, #render_until, renderable_types, renderables, #skip!, #skip_until!, #templates_for

Constructor Details

#initialize(*args) ⇒ Renderer

Returns a new instance of Renderer.



69
70
71
72
# File 'lib/skyline/deprecated/version3_0_8.rb', line 69

def initialize(*args)
  self.class.deprecate!
  super
end

Class Method Details

.deprecate!Object



64
65
66
# File 'lib/skyline/deprecated/version3_0_8.rb', line 64

def deprecate!
  warn "[DEPRECATION] Don't use Skyline::Renderer anymore, use Skyline::Rendering::Renderer (will be removed in 3.1.0) [#{caller[1]}]"
end